|
|
@ -36,8 +36,12 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 覆盖父类的_constructor方法,widget不走ob的生命周期
|
|
|
|
|
|
|
|
_constructor: function () { |
|
|
|
_constructor: function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 覆盖父类的_constructor方法,widget不走ob的生命周期
|
|
|
|
|
|
|
|
_constructed: function () { |
|
|
|
if (this.setup) { |
|
|
|
if (this.setup) { |
|
|
|
pushTarget(this); |
|
|
|
pushTarget(this); |
|
|
|
this.service = this.setup(); |
|
|
|
this.service = this.setup(); |
|
|
@ -47,8 +51,8 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_lazyConstructor: function () { |
|
|
|
_lazyConstructor: function () { |
|
|
|
if (!this._constructed) { |
|
|
|
if (!this.__constructed) { |
|
|
|
this._constructed = true; |
|
|
|
this.__constructed = true; |
|
|
|
this._init(); |
|
|
|
this._init(); |
|
|
|
this._initRef(); |
|
|
|
this._initRef(); |
|
|
|
} |
|
|
|
} |
|
|
|