在 YUI 视图中,我有以下方法:
initializer: function () {
this.after('init', this.onInitComplete, this);
},
onInitComplete: function (e) {
console.log('onInitComplete');
var list = this.checkGroupList = new CheckGroupList();
var group1 = new Y.CheckGroupModel();
var group2 = new Y.CheckGroupModel();
var group3 = new Y.CheckGroupModel();
list.add(group1);
list.add(group2);
list.add(group3);
this.reset();
},
为什么 onInitComplete 没有运行?