Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX beta] Fix Model id handling, take 2 #3744

Closed
wants to merge 1 commit into from

Conversation

acburdine
Copy link
Contributor

Fixes the thing that should have been fixed in #3701

@acburdine
Copy link
Contributor Author

cc @bmac @igorT

@acburdine acburdine force-pushed the id-fix-foreal branch 2 times, most recently from 98fab8a to 8c0803b Compare September 10, 2015 03:07
},

// handlers for the id property
unknownProperty: function (key) {
Copy link
Member

Choose a reason for hiding this comment

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

I think this way requires uses to do record.get('id') to access the id. I was hoping to support record.id because it previously worked before the internal model refactor but maybe thats not possible :(.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, this unknown property only needs to be in place until ember 2.2, as I think the object.defineProperty way should work then via rwjblue's fix

@acburdine
Copy link
Contributor Author

@bmac if I add an observer to the id property instead of using an unknown property, that's the other way in which I was able to get it to work.

@bmac
Copy link
Member

bmac commented Sep 28, 2015

Superseded by #3781.

@bmac bmac closed this Sep 28, 2015
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.

2 participants