We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
this.$()
1 parent 52886ad commit cade173Copy full SHA for cade173
vendor/jquery/component.dollar.js
@@ -1,4 +1,4 @@
1
-import { assert } from '@ember/debug';
+import { assert, deprecate } from '@ember/debug';
2
3
(function() {
4
Ember.Component.reopen({
@@ -8,6 +8,16 @@ import { assert } from '@ember/debug';
8
this.tagName !== ''
9
);
10
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
+
21
if (this.element) {
22
return sel ? jQuery(sel, this.element) : jQuery(this.element);
23
}
0 commit comments