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