Skip to content

Commit

Permalink
Fix callback calls. See mikeric#650. Regression since mikeric#546
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Christophe Cazeaux committed Aug 6, 2016
1 parent a4a2318 commit f014ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter.coffee
Expand Up @@ -77,7 +77,7 @@ Rivets.public.adapters['.'] =
callbacks = map.callbacks

if callbacks[keypath]
cb() for cb in callbacks[keypath]
cb() for cb in callbacks[keypath].slice() when cb in callbacks[keypath]
@observeMutations newValue, obj[@id], keypath

unless callback in callbacks[keypath]
Expand Down

0 comments on commit f014ebd

Please sign in to comment.