Fixed update() of App.UpdateTastbar class.

This commit is contained in:
Martin Edenhofer 2015-11-20 17:11:06 +01:00
parent 01a37e9657
commit 4f2cb55a56

View file

@ -730,13 +730,13 @@ class App.UpdateHeader extends App.Controller
super super
# subscribe and reload data / fetch new data if triggered # subscribe and reload data / fetch new data if triggered
@subscribeId = @genericObject.subscribe( @render ) @subscribeId = @genericObject.subscribe(@render)
release: => release: =>
App[ @genericObject.constructor.className ].unsubscribe(@subscribeId) App[ @genericObject.constructor.className ].unsubscribe(@subscribeId)
render: (genericObject) => render: (genericObject) =>
@el.find( '.page-header h1' ).html( genericObject.displayName() ) @el.find('.page-header h1').html(genericObject.displayName())
class App.UpdateTastbar extends App.Controller class App.UpdateTastbar extends App.Controller
@ -744,12 +744,12 @@ class App.UpdateTastbar extends App.Controller
super super
# subscribe and reload data / fetch new data if triggered # subscribe and reload data / fetch new data if triggered
@subscribeId = @genericObject.subscribe( @update ) @subscribeId = @genericObject.subscribe(@update)
release: => release: =>
App[ @genericObject.constructor.className ].unsubscribe(@subscribeId) App[ @genericObject.constructor.className ].unsubscribe(@subscribeId)
update: (genericObject) -> update: (genericObject) =>
# update taskbar with new meta data # update taskbar with new meta data
@metaTaskUpdate() @metaTaskUpdate()