Skip to content

Conversation

imaustink
Copy link
Contributor

Fixes #360

@imaustink imaustink force-pushed the 360-fix-ref-serialization branch from 9c9ef6c to 6a30fda Compare October 11, 2017 03:11
Ref.prototype.serialize = function() {
return this[idProp];
Ref.prototype.serialize = Ref.prototype[canSymbol.for("can.serialize")] = function() {
return canReflect.serialize(this[idProp], CIDMap);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a good reason to provide a Map here? Seems to me like it would only be good for circular reference, which shouldn't happen here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ref isn't serializing properly

2 participants