Fixed local bind.
This commit is contained in:
parent
0132c9b355
commit
d6564fec71
1 changed files with 4 additions and 4 deletions
|
@ -187,11 +187,11 @@ class App.Model extends Spine.Model
|
|||
App[ @constructor.className ]['SUBSCRIPTION_ITEM'] = {}
|
||||
|
||||
# subscribe and render data after local change
|
||||
@bind(
|
||||
App[ @constructor.className ].bind(
|
||||
'refresh change'
|
||||
=>
|
||||
for key, callback of App[ @constructor.className ]['SUBSCRIPTION_ITEM'][ @id ]
|
||||
callback(@)
|
||||
(item) =>
|
||||
for key, callback of App[ @constructor.className ]['SUBSCRIPTION_ITEM'][ item.id ]
|
||||
callback(item)
|
||||
)
|
||||
|
||||
# subscribe and render data after server change
|
||||
|
|
Loading…
Reference in a new issue