|
|
@ -26,8 +26,11 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.ShelterEditor.superclass._init.apply(this, arguments); |
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
o.value = BI.isFunction(o.value) ? this.__watch(o.value, function (context, newValue) { |
|
|
|
|
|
|
|
self.setValue(newValue); |
|
|
|
|
|
|
|
}) : o.value; |
|
|
|
|
|
|
|
BI.ShelterEditor.superclass._init.apply(this, arguments); |
|
|
|
this.editor = BI.createWidget({ |
|
|
|
this.editor = BI.createWidget({ |
|
|
|
type: "bi.editor", |
|
|
|
type: "bi.editor", |
|
|
|
simple: o.simple, |
|
|
|
simple: o.simple, |
|
|
|