From: Darren Date: Wed, 3 Sep 2014 14:15:02 +0000 (+0100) Subject: Adding 'loaded' event to kiwi.events X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=314fcba89341cbdf9bd47fed62524640fe181d0c;p=KiwiIRC.git Adding 'loaded' event to kiwi.events --- diff --git a/client/src/app.js b/client/src/app.js index e7d643d..ec0c348 100644 --- a/client/src/app.js +++ b/client/src/app.js @@ -242,7 +242,10 @@ _kiwi.global = { }, start: function() { - _kiwi.app.showStartup(); + _kiwi.global.events.emit('loaded') + .done(function() { + _kiwi.app.showStartup(); + }); }, // Allow plugins to change the startup applet