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

Use "ember-new-computed" to polyfill new CP syntax #337

Merged
merged 1 commit into from
Apr 1, 2015

Conversation

salzhrani
Copy link

and minor indentation fix


var dateComputed = function() {
return Ember.computed(
return computed({ set:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can the set be on the same line as its function? Same as https://github.com/rwjblue/ember-new-computed#usage

@teddyzeenny
Copy link
Contributor

@salzhrani thanks for this! I left some comments.

@salzhrani
Copy link
Author

Updated.

}
return null;
}
).property();
}).property();
Copy link
Member

Choose a reason for hiding this comment

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

No need to call .property on the return value of ember-new-computed. It is already a computed property descriptor...

@teddyzeenny
Copy link
Contributor

👍

teddyzeenny added a commit that referenced this pull request Apr 1, 2015
Use "ember-new-computed" to polyfill new CP syntax
@teddyzeenny teddyzeenny merged commit 017a1f7 into emberjs:master Apr 1, 2015
@rwjblue
Copy link
Member

rwjblue commented Apr 1, 2015

Awesome!

@salzhrani salzhrani deleted the new-cp-syntax branch April 1, 2015 13:01
@salzhrani
Copy link
Author

I am confused about instrumentWithStack ... it is not in ember's code base. where is it injected from?

@teddyzeenny
Copy link
Contributor

@salzhrani it's not part of the Ember app, but it is part of this repo. The inspector is made up of two separate parts, an Ember app (which is the one you see in the devtools panel when using the inspector) and an injected script (everything under ember_debug directory in this repo) which is injected from this repo into the app you are debugging.

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.

4 participants