|
|
|
@ -26,8 +26,11 @@ BI.SignEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.SignEditor.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; |
|
|
|
|
BI.SignEditor.superclass._init.apply(this, arguments); |
|
|
|
|
this.editor = BI.createWidget({ |
|
|
|
|
type: "bi.editor", |
|
|
|
|
simple: o.simple, |
|
|
|
@ -279,4 +282,4 @@ BI.SignEditor.EVENT_RESTRICT = "EVENT_RESTRICT";
|
|
|
|
|
BI.SignEditor.EVENT_SPACE = "EVENT_SPACE"; |
|
|
|
|
BI.SignEditor.EVENT_EMPTY = "EVENT_EMPTY"; |
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.sign_editor", BI.SignEditor); |
|
|
|
|
BI.shortcut("bi.sign_editor", BI.SignEditor); |
|
|
|
|