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

Embercli3compat #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

directrix1
Copy link
Collaborator

Fixes error #73 .

// Backwards compatability for Ember < 2.x
Ember.Enumerable.keys().indexOf('includes') !== -1 ?
// Backwards compatability for Ember < 2.x and > 3.x
(typeof ((Ember.A()).includes)) === 'function' ?
Copy link
Owner

Choose a reason for hiding this comment

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

typeOf is an Ember function. I was using that over native one. This is a departure from the style used on line 11.

// Backwards compatability for Ember < 2.x
Ember.Enumerable.keys().indexOf('includes') !== -1 ?
// Backwards compatability for Ember < 2.x and > 3.x
(typeof ((Ember.A()).includes)) === 'function' ?
'includes' :
'contains'
Copy link
Owner

Choose a reason for hiding this comment

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

Oh I get it now. Gee this addon is really messy. Who wrote it? Oh right. now I'm embarrassed.

@sukima
Copy link
Owner

sukima commented Jul 11, 2019

I'm not even going to begin understanding why CI fails. @directrix1 Adding you as a contributor. Merge when you feel this is working since your the one using the addon.

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.

2 participants