Double-negate the routine value in the if / unless binder so that we're comparin…
…g a string boolean value.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -458,7 +458,7 @@ Rivets.binders = | ... | @@ -458,7 +458,7 @@ Rivets.binders = |
458 | @nested?.unbind() | 458 | @nested?.unbind() |
459 | 459 | ||
460 | routine: (el, value) -> | 460 | routine: (el, value) -> |
461 | if value is not @nested? | 461 | if !!value is not @nested? |
462 | if value | 462 | if value |
463 | models = {} | 463 | models = {} |
464 | models[key] = model for key, model of @view.models | 464 | models[key] = model for key, model of @view.models | ... | ... |
-
Please register or sign in to post a comment