I understand it is providing static or “class” properties, but I want to understand how it’s doing this, is it creating a new object and putting these static properties on the prototype?
Backbone.View.extend(properties, [classProperties])
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Backbone used and internal helper function called
inherits. You can see the annotated source code here. It sets up the prototype chain to provide class-like functionality.