Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addon/mixins/select-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const emberArrayFunc = function(method) {
};
};
const _contains = emberArrayFunc(
// 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.

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

);
Expand Down