Answer the question
In order to leave comments, you need to log in
Backbone, the extend function and how does it work?
Link to a piece of code backbonejs.org/docs/backbone.html#section-209
Gentlemen, explain how this piece of code works.
...
} else {
child = function(){ return parent.apply(this, arguments); };
}
_.extend(child, parent, staticProps);
acts as an object and not a function, which also hasn't been executed.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question