Fix test failure after 8215ba7a1d
This commit is contained in:
parent
235d7c8dae
commit
cc04ddbe4d
|
@ -48,7 +48,6 @@
|
||||||
<constructor><![CDATA[
|
<constructor><![CDATA[
|
||||||
this.mode = this.getAttribute('mode');
|
this.mode = this.getAttribute('mode');
|
||||||
|
|
||||||
this._onInitCallbacks = [];
|
|
||||||
this._iframe = document.getAnonymousElementByAttribute(this, "anonid", "rt-view");
|
this._iframe = document.getAnonymousElementByAttribute(this, "anonid", "rt-view");
|
||||||
|
|
||||||
// Atomic units, HTML -> RTF (cleanup)
|
// Atomic units, HTML -> RTF (cleanup)
|
||||||
|
@ -624,6 +623,9 @@
|
||||||
callback(this._editor);
|
callback(this._editor);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if (!this._onInitCallbacks) {
|
||||||
|
this._onInitCallbacks = [];
|
||||||
|
}
|
||||||
this._onInitCallbacks.push(callback);
|
this._onInitCallbacks.push(callback);
|
||||||
}
|
}
|
||||||
]]></body>
|
]]></body>
|
||||||
|
@ -730,8 +732,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
let cb;
|
let cb;
|
||||||
while (cb = this._onInitCallbacks.shift()) {
|
if (this._onInitCallbacks) {
|
||||||
cb(this._editor);
|
while (cb = this._onInitCallbacks.shift()) {
|
||||||
|
cb(this._editor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user