Created
May 21, 2013 17:40
-
-
Save gabrieljoelc/5621687 to your computer and use it in GitHub Desktop.
Example of calling a "base" method in JavaScript using Backbone.js.
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
Backbone.Collection.extend({ | |
add: function(models, options) { | |
models.doSomethingSpecific(); | |
return Backbone.Collection.prototype.add.call(this, models, options); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment