From ac2d447aba2d35e8148b048957d3eb29c208a6a2 Mon Sep 17 00:00:00 2001 From: dntzhang Date: Tue, 22 Nov 2016 15:53:38 +0800 Subject: [PATCH 1/3] Update nuclear.js --- src/nuclear.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/nuclear.js b/src/nuclear.js index 508d27e01..4ca9086f2 100644 --- a/src/nuclear.js +++ b/src/nuclear.js @@ -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; -} \ No newline at end of file +} From 91ea35c4ff771157401ea5f38341da318badf238 Mon Sep 17 00:00:00 2001 From: dntzhang Date: Tue, 22 Nov 2016 15:56:58 +0800 Subject: [PATCH 2/3] Update nuclear.js --- src/nuclear.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nuclear.js b/src/nuclear.js index 4ca9086f2..bace23d91 100644 --- a/src/nuclear.js +++ b/src/nuclear.js @@ -9,10 +9,10 @@ Nuclear._mixObj = function (obj) { obj.ctor = function (option, selector, increment) { + this.pureOption = Nuclear.clone(option); if (this.install) { this.install(); } - this.pureOption = Nuclear.clone(option); this._nuclearTwoWay = true; this._nuclearDiffDom = true; this._nuclearIncrement = increment; From efdb600da757d20706256479e51c8b8b18a74126 Mon Sep 17 00:00:00 2001 From: dntzhang Date: Tue, 22 Nov 2016 16:08:27 +0800 Subject: [PATCH 3/3] Update nuclear.js --- src/nuclear.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/nuclear.js b/src/nuclear.js index bace23d91..38798b212 100644 --- a/src/nuclear.js +++ b/src/nuclear.js @@ -10,9 +10,6 @@ Nuclear._mixObj = function (obj) { obj.ctor = function (option, selector, increment) { this.pureOption = Nuclear.clone(option); - if (this.install) { - this.install(); - } this._nuclearTwoWay = true; this._nuclearDiffDom = true; this._nuclearIncrement = increment; @@ -80,7 +77,9 @@ Nuclear._mixObj = function (obj) { this.parentNode = document.createElement("div"); } } - + if (this.install) { + this.install(); + } this._nuclearRef = []; this._isNuclearComponent = true; for (var key in this) {