Fixed local bind.

This commit is contained in:
Martin Edenhofer 2014-02-09 02:54:48 +01:00
parent 0132c9b355
commit d6564fec71

View file

@ -187,11 +187,11 @@ class App.Model extends Spine.Model
App[ @constructor.className ]['SUBSCRIPTION_ITEM'] = {} App[ @constructor.className ]['SUBSCRIPTION_ITEM'] = {}
# subscribe and render data after local change # subscribe and render data after local change
@bind( App[ @constructor.className ].bind(
'refresh change' 'refresh change'
=> (item) =>
for key, callback of App[ @constructor.className ]['SUBSCRIPTION_ITEM'][ @id ] for key, callback of App[ @constructor.className ]['SUBSCRIPTION_ITEM'][ item.id ]
callback(@) callback(item)
) )
# subscribe and render data after server change # subscribe and render data after server change