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'] = {}
|
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
|
||||||
|
|
Loading…
Reference in a new issue