Skip to content

Instantly share code, notes, and snippets.

@lahmatiy
Last active December 19, 2015 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lahmatiy/5895614 to your computer and use it in GitHub Desktop.
Save lahmatiy/5895614 to your computer and use it in GitHub Desktop.
Patch to restore basis.data.Value#updateCount (dropped in 0.9.4)
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