-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Change deprecated usages of Ember.create and Ember.keys to Object.create and Object.keys #98
Conversation
…o Object.create and Object.keys
Not entirely sure if the generated |
unfortunately for the time being this library still needs to support IE8. (Ember 2.0 wont support IE8 hence the deprecations) So in the interim, please be sure to include the appropriate polyfils |
I thought that the polyfils were expected to be present on the page when this gets loaded, rather than it providing it. An assertion for that is here: https://github.com/ember-cli/ember-resolver/blob/master/packages/ember-resolver/lib/core.js#L36. Should we do something similar for |
In some future release maybe, but for the 1.x series of ember that would be a breaking change. That check is to ensure the right polyfil is use, if one is used at all. |
Got it. Since I'm new to this project, I've added a task list to the description above. 1 & 2 are done I think. Can you give me pointers on 3. And 4 is a question. On 3: Should we create a new file Thanks for getting me started on this project. |
@akshayrawat - Inlining here seems fine for now, we need to rework the build system to something more modern and when we do that we can swap to bower. |
@rwjblue Alright then this PR is all set. Let me know if I need to do anything else to wrap this up. Thanks. |
I'm not seeing the polyfils here, did you forget to add them to |
Be sure that the polyfils don't smash the globals, this should remain an isolated change |
Added the polyfills. They were just copied from the source mentioned in the comments. The formatting rules for both are different, hence JSHint complains. Not sure if we should fix the formatting, or retain the original untouched copy. Let me know. |
Not sure why the tests failed. |
superseded by: #100 thanks for the PR though. |
Fixes #97
Tasks:
Ember.keys
toObject.keys
.Ember.create
toObject.create
.Object.create
andObject.keys
.