gmac / backbone.epoxy

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

Custom BindingFilter returning "Date" object on set function fails to update model #52

Closed monkeybrother closed 10 years ago

monkeybrother commented 10 years ago

A Date object fails the test on line 1155 of epoxy.js. The following replacement fixes the issue:

if (!isObject(value) || isArray(value) || _.isDate(value)) {

instead of

if (!isObject(value) || isArray(value)) {

gmac commented 10 years ago

You got it: 9d2fde6. Thanks!