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
This package is used in the js_model package. When .each is used on a collection of models; the accessors defined on the model no longer work on the cloned copies.
A good solution worth trying would be for a collection to default to calling .clone() instead of using the clone package by default.
This was js_model could implement a .clone method which would then take over from the clone package whenever a model is included within a collection.
Add check to see whether a .clone method exists on objects that are copied during a call to the collection .each method; if so, use this, otherwise use the clone package.
The text was updated successfully, but these errors were encountered:
20TRIES
changed the title
Each method does not copy properties copied via Object.defineProperty
[0.0] Each method does not copy properties copied via Object.defineProperty
Jul 4, 2016
20TRIES
changed the title
[0.0] Each method does not copy properties copied via Object.defineProperty
[0.2] Each method does not copy properties copied via Object.defineProperty
Jul 10, 2016
Only enumerable properties will be cloned. If non-enumerable properties need to be cloned, then a .clone method will need to be defined within the items within the collection; this method will then be delegated to when cloning collection items.
This package is used in the js_model package. When .each is used on a collection of models; the accessors defined on the model no longer work on the cloned copies.
A good solution worth trying would be for a collection to default to calling .clone() instead of using the clone package by default.
This was js_model could implement a .clone method which would then take over from the clone package whenever a model is included within a collection.
The text was updated successfully, but these errors were encountered: