Skip to content

Commit d9d9df1

Browse files
authored
Merge pull request #42 from yapplabs/deprecations
Eliminate use of deprecated APIs in ember 3.24
2 parents ce558b4 + ac08430 commit d9d9df1

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

addon/mixins/col-pick.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default Mixin.create({
6060
var colorScheme = this.colorScheme;
6161

6262
if (layout && colorScheme) {
63-
var colpick = (this._colpick = this.$().colpick({
63+
var colpick = (this._colpick = $(this.element).colpick({
6464
layout: layout,
6565
colorScheme: colorScheme,
6666
submit: 0,
@@ -78,8 +78,7 @@ export default Mixin.create({
7878
}
7979
},
8080
onHide: () => {
81-
// eslint-disable-next-line ember/closure-actions
82-
this.sendAction('onHide');
81+
this.onHide?.();
8382
},
8483
}));
8584

@@ -105,7 +104,7 @@ export default Mixin.create({
105104

106105
popup: function () {
107106
if (this._state === 'inDOM') {
108-
return $('#' + this.$().data('colpickId'));
107+
return $('#' + $(this.element).data('colpickId'));
109108
}
110109
},
111110

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
/* eslint-disable no-undef */
22
self.deprecationWorkflow = self.deprecationWorkflow || {};
33
self.deprecationWorkflow.config = {
4-
workflow: [
5-
{
6-
handler: 'silence',
7-
matchId: 'ember-views.curly-components.jquery-element',
8-
},
9-
{ handler: 'silence', matchId: 'ember-source.deprecation-without-for' },
10-
{ handler: 'silence', matchId: 'ember-source.deprecation-without-since' },
11-
{ handler: 'silence', matchId: 'ember-component.send-action' },
12-
],
4+
workflow: [],
135
};

0 commit comments

Comments
 (0)