Make observable properties enumerable. [Closes #276]
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -57,6 +57,7 @@ Rivets.adapters['.'] = | ... | @@ -57,6 +57,7 @@ Rivets.adapters['.'] = |
57 | value = obj[keypath] | 57 | value = obj[keypath] |
58 | 58 | ||
59 | Object.defineProperty obj, keypath, | 59 | Object.defineProperty obj, keypath, |
60 | enumerable: true | ||
60 | get: -> value | 61 | get: -> value |
61 | set: (newValue) => | 62 | set: (newValue) => |
62 | if newValue isnt value | 63 | if newValue isnt value | ... | ... |
-
Please register or sign in to post a comment