 class App.Notify extends Spine.Controller
+  className: 'container'
   events:
     'click .alert': 'destroy'
-
-  className: 'container'
 
   constructor: ->
     super
 
-    @bind 'notify', (data) =>
+    App.Event.bind 'notify', (data) =>
       @render(data)
 
-    @bind 'notify:removeall', =>
+    App.Event.bind 'notify:removeall', =>
       @log 'notify:removeall', @
       @destroyAll()
 
-    @bind 'notifyDesktop', (data) =>
+    App.Event.bind 'notifyDesktop', (data) =>
       if !data['icon']
         data['icon'] = 'unknown'
       notify.createNotification( data.msg, data )
 
     # request desktop notification after login
-    @bind 'auth', (data) ->
+    App.Event.bind 'auth', (data) ->
       if !_.isEmpty(data)
         notify.requestPermission()
 

        layout:   'top'
        type:     data.type
        theme:    'noty_theme_twitter'
        animateOpen: { 
          height: 'toggle'
          opacity: 0.85,
        },

        closeOnSelfOver:  false
      }
    )

  destroy: (e) ->
    e.preventDefault()
#    $(e.target).parents('.alert').remove();
