backbone.js - Where is Backbone.Model.extend method defined? -
i'm reading backbone.js code , can't find definition of backbone.model.extend
method.
where it?
at end of source, under helpers, there's helper function correctly set prototype chain, subclasses :
var extend = function(protoprops, staticprops) { }
which assigned backbone prototypes
model.extend = collection.extend = router.extend = view.extend = extend;
backbone.js
No comments:
Post a Comment