fix nuclear server render problem

This commit is contained in:
kmdjs 2016-05-21 22:02:52 +08:00
parent 21a8e755ee
commit e0c7bb1bea
3 changed files with 6 additions and 4 deletions

3
dist/nuclear.js vendored
View File

@ -1452,7 +1452,8 @@ Nuclear._mixObj = function (obj) {
}
this._nuclearTimer = null;
this._preNuclearTime = new Date();
this._nuclearObserver();
//server不用双向绑定
if(!this._nuclearServerRender)this._nuclearObserver();
this._nuclearRenderInfo = {
tpl: this._nuclearTplGenerator(),

4
dist/nuclear.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -75,7 +75,8 @@ Nuclear._mixObj = function (obj) {
}
this._nuclearTimer = null;
this._preNuclearTime = new Date();
this._nuclearObserver();
//server不用双向绑定
if(!this._nuclearServerRender)this._nuclearObserver();
this._nuclearRenderInfo = {
tpl: this._nuclearTplGenerator(),