var WorkoutExerciseRowView = ExerciseRowView.extend( { render : function() { return ExerciseRowView.prototype.render.call(this,{ workoutExercise : this.model, exercise : this.model.get("exercise"), workoutSection : this.model.get("section"), isEditable : true, number : this.number, WorkoutExercise : WorkoutExercise, WorkoutSection : WorkoutSection }); } });
From the basic documentation here: http://backbonejs.org/#Model-extend
Briefly about super: JavaScript does not provide an easy way to call super - a function with the same name that was defined above on the prototype circuit. If you override the main function, for example, set, or save, and you want to call the implementation of the parent object, you will have to explicitly call it this way:
Backbone.Model.prototype.set.call(this, attributes, options);
source share