Browse Source

Added placeholder for browser check.

Martin Edenhofer 11 years ago
parent
commit
fb26aa4bda

+ 8 - 3
app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee

@@ -3,7 +3,10 @@ class App.Run extends App.Controller
     super
     @el = $('#app')
 
-    @trigger('app:ready')
+    App.Event.trigger('app:init')
+
+    # browser check
+    # App.Browser.check()
 
     # init collections
     App.Collection.init()
@@ -15,17 +18,19 @@ class App.Run extends App.Controller
     App.Auth.loginCheck()
 
     # start widgets
-    @trigger('widget:init')
+    App.Event.trigger('widget:init')
     widgets = App.Config.get( 'Widgets' )
     if widgets
       for key, widget of widgets
         @el.append('<div id="' + key + '"></div>')
         new widget( el: @el.find("##{key}") )
-    @trigger('widget:ready')
+    App.Event.trigger('widget:ready')
 
     # bind to fill selected text into
     App.ClipBoard.bind( @el )
 
+    App.Event.trigger('app:ready')
+
 class App.Content extends App.Controller
   className: 'container'
 

+ 3 - 1
doc/app_events.txt

@@ -1,6 +1,6 @@
 1) App Boot
 
-1.1) app:ready
+1.1) app:init
 
 1.2) collection:init
 1.2.1) collection:ready
@@ -17,6 +17,8 @@
 1.5) widget:init
 1.5.1) widget:ready
 
+1.6) app:ready
+
 
 2) Task
 2.1) taskbar:init