From 6506d4745a7c6426b5169d2217b8638f769bf7b1 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 16 Mar 2016 13:50:35 +0000 Subject: [PATCH] Call `initialized` event once everything in core has been set up --- src/converse-core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }));