Created
February 5, 2015 20:06
-
-
Save mikaelbr/87af0bc40d3568f902e2 to your computer and use it in GitHub Desktop.
This file contains 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
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