Skip to content

Commit

Permalink
Merge pull request #326 from emberjs/mixonic/no-component-deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic authored Jun 9, 2021
2 parents d064744 + 6371b0f commit c6417b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vendor/jquery/component.dollar.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { assert, deprecate } from '@ember/debug';
import EmberObject from '@ember/object';
import Component from '@ember/component';

(function() {
Component.reopen({
/*
* This non-standard use of `reopen` and `call` allows the component
* base class to be reopened without triggering the
* ember.component.reopen deprecation in Ember itself.
*/
EmberObject.reopen.call(Component, {
$(sel) {
assert(
"You cannot access this.$() on a component with `tagName: ''` specified.",
Expand Down

0 comments on commit c6417b7

Please sign in to comment.