|
|
@ -38,6 +38,7 @@ |
|
|
|
destroyed: null, |
|
|
|
destroyed: null, |
|
|
|
|
|
|
|
|
|
|
|
_constructor: function () { |
|
|
|
_constructor: function () { |
|
|
|
|
|
|
|
this._initProps(); |
|
|
|
this._init(); |
|
|
|
this._init(); |
|
|
|
this._initRef(); |
|
|
|
this._initRef(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -46,12 +47,15 @@ |
|
|
|
return {}; |
|
|
|
return {}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_initProps: function () { |
|
|
|
var props = this.props; |
|
|
|
var props = this.props; |
|
|
|
if (BI.isFunction(this.props)) { |
|
|
|
if (BI.isFunction(this.props)) { |
|
|
|
props = this.props(this.__config); |
|
|
|
props = this.props(this.__config); |
|
|
|
} |
|
|
|
} |
|
|
|
this.options = extend(this._defaultConfig(this.__config), props, this.__config); |
|
|
|
this.options = extend(this._defaultConfig(this.__config), props, this.__config); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
this._initListeners(); |
|
|
|
this._initListeners(); |
|
|
|
this.init && this.init(); |
|
|
|
this.init && this.init(); |
|
|
|
}, |
|
|
|
}, |
|
|
|