Update nuclear.js

This commit is contained in:
dntzhang 2016-11-22 15:53:38 +08:00 committed by GitHub
parent d25b13c0d6
commit ac2d447aba
1 changed files with 5 additions and 4 deletions

View File

@ -9,6 +9,9 @@
Nuclear._mixObj = function (obj) {
obj.ctor = function (option, selector, increment) {
if (this.install) {
this.install();
}
this.pureOption = Nuclear.clone(option);
this._nuclearTwoWay = true;
this._nuclearDiffDom = true;
@ -77,9 +80,7 @@ Nuclear._mixObj = function (obj) {
this.parentNode = document.createElement("div");
}
}
if (this.install) {
this.install();
}
this._nuclearRef = [];
this._isNuclearComponent = true;
for (var key in this) {
@ -548,4 +549,4 @@ Nuclear.clone = function (item) {
}
return result;
}
}