Add the fix to allow more dynamic select options using the each-* binder (credit…
… to @codepodu via #115). [#75]
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -183,6 +183,11 @@ Rivets.binders['each-*'] = | ... | @@ -183,6 +183,11 @@ Rivets.binders['each-*'] = |
183 | else if @iterated[index].models[modelName] isnt model | 183 | else if @iterated[index].models[modelName] isnt model |
184 | @iterated[index].update data | 184 | @iterated[index].update data |
185 | 185 | ||
186 | if el.nodeName is 'OPTION' | ||
187 | for binding in @view.bindings | ||
188 | if binding.el is @marker.parentNode and binding.type is 'value' | ||
189 | binding.sync() | ||
190 | |||
186 | update: (models) -> | 191 | update: (models) -> |
187 | data = {} | 192 | data = {} |
188 | 193 | ... | ... |
-
Please register or sign in to post a comment