我有一个WorkoutExerciseRowView
,它扩展了ExerciseRowView
。渲染函数非常相似,除了WorkoutExerciseRowView
必须在ExerciseRowView
的渲染中添加一些参数。如何在WorkoutExerciseRowView
的渲染函数中调用ExerciseRowView
的渲染函数?
var WorkoutExerciseRowView = ExerciseRowView.extend( {
render : function() {
//return this.constructor.render({ // doesn't work
return this.render({ // doesn't work
workoutExercise : this.model,
exercise : this.model.get("exercise"),
workoutSection : this.model.get("section"),
isEditable : true,
number : this.number,
WorkoutExercise : WorkoutExercise,
WorkoutSection : WorkoutSection
});
}
});
谢谢!