Replace array detection with ES5's Array.isArray.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -31,7 +31,7 @@ Rivets.adapters['.'] = | ... | @@ -31,7 +31,7 @@ Rivets.adapters['.'] = |
31 | response | 31 | response |
32 | 32 | ||
33 | observeMutations: (obj, ref, keypath) -> | 33 | observeMutations: (obj, ref, keypath) -> |
34 | if Object.prototype.toString.call(obj) is '[object Array]' | 34 | if Array.isArray obj |
35 | map = @weakReference obj | 35 | map = @weakReference obj |
36 | 36 | ||
37 | unless map.pointers? | 37 | unless map.pointers? | ... | ... |
-
Please register or sign in to post a comment