You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of checking instanceof, just check if it's something with a
serialize function attached to it. This allows can.Model.model to
accept can.Observe (and anything else that's "serializable").
This does have the side-effect that "serialize" becomes a reserved
property, but there's other parts of canjs where this happens, such as
can.Observe#bind
Fixes#444
The check in https://github.com/bitovi/canjs/blob/master/model/model.js#L1028:
Should check for
instanceof can.Observe
and serialize any Observe since running an Observe through.model
causes an error.The text was updated successfully, but these errors were encountered: