gmac / backbone.epoxy

Declarative data binding and computed models for Backbone
http://epoxyjs.org
MIT License
615 stars 89 forks source link

Select options binding: set sometimes reverts to default value #51

Closed sdemjanenko closed 10 years ago

sdemjanenko commented 10 years ago

It seems that the html replace doesn't always do the right thing or the value binding runs to soon. This fix ensures that we try to set the value we want and if we can't it will set the default value.

gmac commented 10 years ago

I like it... let's make it jQuery's problem to resolve the selection state. See 838e4aa. Epoxy's selection rendering was probably inconsistent due to data type handling... jQuery solved those problems for us long ago.