Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

_.extend() Explanation

 var Collection = Backbone.Collection = function(models, options) {
 /**/
    };
    _.extend(Collection.prototype, Events, {...});


/*  h: function(){console.log(this.models);},
so after you use the _.extend, in the third or second {} you want to add to the prototype, any of the inputs parameters of the prototype you can access in the 2nd or 3rd part with this.models 
*/
 
PREVIOUS NEXT
Tagged: #Explanation
ADD COMMENT
Topic
Name
5+8 =