-
Notifications
You must be signed in to change notification settings - Fork 287
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
Conversation
|
||
var dateComputed = function() { | ||
return Ember.computed( | ||
return computed({ set: |
There was a problem hiding this comment.
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
@salzhrani thanks for this! I left some comments. |
Updated. |
} | ||
return null; | ||
} | ||
).property(); | ||
}).property(); |
There was a problem hiding this comment.
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...
👍 |
Use "ember-new-computed" to polyfill new CP syntax
Awesome! |
I am confused about |
@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 |
and minor indentation fix