Added placeholder for browser check.
This commit is contained in:
parent
bb10bb600b
commit
fb26aa4bda
2 changed files with 11 additions and 4 deletions
|
@ -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'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue