2b61f693 by Michael Richards

Add the fix to allow more dynamic select options using the each-* binder (credit…

… to @codepodu via #115). [#75]
1 parent cae03114
...@@ -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
......