diff --git a/src/converse-core.js b/src/converse-core.js index 5331b466a..a32035798 100755 --- a/src/converse-core.js +++ b/src/converse-core.js @@ -683,6 +683,7 @@ } } deferred.resolve(); + converse.emit('initialized'); }; this.onConnected = function (callback) { @@ -1856,7 +1857,6 @@ this.initializePlugins(); this._initialize(); this.registerGlobalEventHandlers(); - converse.emit('initialized'); }; return converse; }));