Adding 'loaded' event to kiwi.events
authorDarren <darren@darrenwhitlen.com>
Wed, 3 Sep 2014 14:15:02 +0000 (15:15 +0100)
committerDarren <darren@darrenwhitlen.com>
Wed, 3 Sep 2014 14:15:02 +0000 (15:15 +0100)
client/src/app.js

index e7d643d626c28f6ac4e901e4d4070a9ce52ddf09..ec0c34886fca6dfc333ad1d654a0369528828ebb 100644 (file)
@@ -242,7 +242,10 @@ _kiwi.global = {
     },\r
 \r
     start: function() {\r
-        _kiwi.app.showStartup();\r
+        _kiwi.global.events.emit('loaded')\r
+        .done(function() {\r
+            _kiwi.app.showStartup();\r
+        });\r
     },\r
 \r
     // Allow plugins to change the startup applet\r