Call initialized event once everything in core has been set up

This commit is contained in:
JC Brand 2016-03-16 13:50:35 +00:00
parent 2173359718
commit 6506d4745a

View File

@ -683,6 +683,7 @@
} }
} }
deferred.resolve(); deferred.resolve();
converse.emit('initialized');
}; };
this.onConnected = function (callback) { this.onConnected = function (callback) {
@ -1856,7 +1857,6 @@
this.initializePlugins(); this.initializePlugins();
this._initialize(); this._initialize();
this.registerGlobalEventHandlers(); this.registerGlobalEventHandlers();
converse.emit('initialized');
}; };
return converse; return converse;
})); }));