Skip to content

Embercli3compat#74

Open
directrix1 wants to merge 2 commits intosukima:masterfrom
directrix1:embercli3compat
Open

Embercli3compat#74
directrix1 wants to merge 2 commits intosukima:masterfrom
directrix1:embercli3compat

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 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