-
Notifications
You must be signed in to change notification settings - Fork 6
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
Ember.typeOf( Symbol ) returns "function", which will cause problems in this code #102
Comments
im curious why this library doesn't just use |
@stefanpenner We have been able to replace Array.isArray() checks such as in softlayer/sl-ember-translate@941cf03 when using Ember.typeOf(), as well as other standardization features Ember.typeOf() provides. As such, we elected to enforce its usage across the board (https://github.com/softlayer/ember-style-guide#type-checking) for our projects for consistency. And since any additional processing that might be incurred is only via the use of Ember.asserts() that get stripped out of production builds anyway we haven't encountered any issues. If there is something missing in our approach or any recommendations you can make we're all ears! |
emberjs/ember.js#11673 is not going to be resolved at this time so calls to |
Will need to use jshint ignore entries like in https://github.com/softlayer/sl-ember-components/blob/688911c66d7a678fab6ff935b332d76593b5b400/addon/components/sl-chart.js#L95 |
sl-ember-test-helpers/test-support/helpers/sl/utils/utils.js
Line 21 in e0e301b
sl-ember-test-helpers/test-support/helpers/sl/synchronous/contains.js
Line 33 in e0e301b
emberjs/ember.js#11673 has been opened regarding this issue in Ember.js so depending on the timing of when the issue is worked on it might already be resolved or we will need to accommodate it via a workaround in our code via using
typeof
. If we do the latter then we need to create an issue to remove our workaround once emberjs/ember.js#11673 is resolved and released.The text was updated successfully, but these errors were encountered: