commit 4867fc7e0361fc15c3668e1c2de6500f038bda21
parent 4edcf5839b21d022a379d773c517ab114636b80b
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 1 Apr 2017 14:27:37 -0400
Fix onInit() in styled textbox if already initialized
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml
@@ -614,7 +614,7 @@
<parameter name="callback"/>
<body><![CDATA[
if (this.initialized) {
- this._editor.once(event, callback);
+ callback(this._editor);
}
else {
this._onInitCallbacks.push(callback);