#41 omitted on earlier commit
This commit is contained in:
parent
45db051f30
commit
e3df816fb9
@ -11,15 +11,22 @@ define(['jquery',
|
|||||||
_.extend(Controller.prototype,Backbone.Events);
|
_.extend(Controller.prototype,Backbone.Events);
|
||||||
options = options || {};
|
options = options || {};
|
||||||
this.menuView = options.menuView;
|
this.menuView = options.menuView;
|
||||||
|
this.titleView = options.titleView;
|
||||||
|
|
||||||
this.initMenu = function() {
|
// this.initMenu = function() {
|
||||||
// this.listenTo(this.menuView,'lesson:click',this.renderTitle);
|
// this.listenTo(this.menuView,'lesson:click',this.renderTitle);
|
||||||
}
|
// }
|
||||||
|
|
||||||
this.updateMenu = function(){
|
this.updateMenu = function(){
|
||||||
this.menuView.updateMenu();
|
this.menuView.updateMenu();
|
||||||
|
},
|
||||||
|
|
||||||
|
//TODO: move title rendering into lessonContent/View pipeline once data can support it
|
||||||
|
this.renderTitle = function(title) {
|
||||||
|
this.titleView.render(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return Controller;
|
return Controller;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user