Fixed update() of App.UpdateTastbar class.
This commit is contained in:
parent
01a37e9657
commit
4f2cb55a56
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue