Skip to content

Instantly share code, notes, and snippets.

@mikaelbr
Created February 5, 2015 20:06
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 mikaelbr/87af0bc40d3568f902e2 to your computer and use it in GitHub Desktop.
Save mikaelbr/87af0bc40d3568f902e2 to your computer and use it in GitHub Desktop.
IndexedCursorPrototype.onChange =
KeyedCursorPrototype.onChange = function(fn) {
var original = this._onChange;
this._onChange = function () {
fn.apply(this, arguments);
return original.apply(this, arguments);
}
return this;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment