Last active
December 19, 2015 04:09
-
-
Save lahmatiy/5895614 to your computer and use it in GitHub Desktop.
Patch to restore basis.data.Value#updateCount (dropped in 0.9.4)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basis.require('basis.data'); | |
(function(){ | |
var emit_change_ = basis.data.Value.prototype.emit_change; | |
basis.data.Value.extend({ | |
updateCount: 0, | |
emit_change: function(){ | |
this.updateCount += 1; | |
emit_change_.apply(this, arguments); | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment