Skip to content

Commit cade173

Browse files
committed
1 parent 52886ad commit cade173

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

vendor/jquery/component.dollar.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assert } from '@ember/debug';
1+
import { assert, deprecate } from '@ember/debug';
22

33
(function() {
44
Ember.Component.reopen({
@@ -8,6 +8,16 @@ import { assert } from '@ember/debug';
88
this.tagName !== ''
99
);
1010

11+
deprecate(
12+
'Using this.$() in a component has been deprecated, consider using this.element',
13+
false,
14+
{
15+
id: 'ember-views.curly-components.jquery-element',
16+
until: '4.0.0',
17+
url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis',
18+
}
19+
);
20+
1121
if (this.element) {
1222
return sel ? jQuery(sel, this.element) : jQuery(this.element);
1323
}

0 commit comments

Comments
 (0)