dxq613 / bui

基于jQuery,兼容KISSY 的富客户端控件库
646 stars 359 forks source link

controller.js的destructor方法获取id的代码是一个bug吗? #40

Closed softlight0629 closed 11 years ago

softlight0629 commented 11 years ago

destructor: function () { var self = this, id, i, view, children = self.get('children'); id = self.get(id); for (i = 0; i < children.length; i++) { children[i].destroy && children[i].destroy(); } self.get('view').destroy(); Manager.removeComponent(id); }


id = self.get(id); 是不是应该为 id = self.get('id');

dxq613 commented 11 years ago

thanks , 调用destroy的情形太少,所以这个问题没有暴露出来。 已经处理