我有一个WorkoutExerciseRowView
which extends ExerciseRowView
。渲染函数非常相似,除了WorkoutExerciseRowView
必须在渲染中添加一些参数ExerciseRowView
。如何在 ' 的渲染函数中调用ExerciseRowView
' 的WorkoutExerciseRowView
渲染函数?
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
});
}
});
谢谢!