This commit is contained in:
张磊 2016-12-07 11:40:12 +08:00
parent d25b13c0d6
commit 6168be96b7
1 changed files with 11 additions and 0 deletions

View File

@ -412,6 +412,17 @@ Nuclear._mixObj = function (obj) {
}
obj.destroy = function () {
this.node.parentNode.removeChild(this.node);
var ele = document.getElementById('nuclear_style_' + this._ncInstanceId);
var head = document.getElementsByTagName('head')[0];
if (ele && ele.parentNode === head) {
head.removeChild(ele);
}
this.node = null;
}
};
Nuclear._fixEvent = function (tpl,instanceId) {