Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Update examples to 1.13.x standards #536

Closed
wants to merge 1 commit into from

Conversation

typeoneerror
Copy link
Contributor

  • No Ember.View
  • No Ember.keys

Example more es6-y.

* No Ember.View
* No Ember.keys
self.get('attributeBindings').pushObject(key);
export default Ember.Component.reopen({
bindAttributes: Ember.on('init', function() {
Object.keys(this).forEach((key) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

unsure about Object.keys

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am too. Which seems like that might be a problem. I get a deprecation warning if I use Ember.keys with 1.13.x, and others are removing it (emberjs/ember-test-helpers#71), so seemed right? Unsure.

Copy link
Contributor

Choose a reason for hiding this comment

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

@typeoneerror according to the documentation "On browsers that support it, this uses the native Object.keys implementation." so I think you are right. I thought maybe it did something with computed properties or the like.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@locks the open PR has been reverted back to Ember.keys. see: https://twitter.com/trek/status/628305995589152768.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 thank you for the clarification

@locks
Copy link
Contributor

locks commented Aug 3, 2015

I could swear a previous PR removed all mentions of Ember.View. Maybe because the PR is pointing to the v1.13.0 branch, not master. Can you update?

@typeoneerror
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants