我使用的是使用composition.I迪朗达尔主细节样品有它定义了一些事件视图模型,ViewAttached事件不会触发
var ctor = function(name, description) {
this.name = name;
this.description = description;
};
ctor.prototype.activate = function() {
system.log('Model Activating', this);
};
ctor.prototype.deactivate = function() {
system.log('Model Deactivating', this);
};
ctor.prototype.viewAttached = function (view) {
system.log('this is not called !', this);
};
之外的所有viewAttached的事件被触发。我找不到这里的原因..
谢谢!发现问题..我正在使用GitHUb存储库的最新版本。 –