Remove jquery from the lazy-click helper

This commit is contained in:
Michael Lange 2020-05-26 14:31:15 -07:00
parent d84df5dbe6
commit 083e82e6b7
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
import Helper from '@ember/component/helper';
import $ from 'jquery';
/**
* Lazy Click Event
@ -10,7 +9,7 @@ import $ from 'jquery';
* that should be handled instead.
*/
export function lazyClick([onClick, event]) {
if (!$(event.target).is('a')) {
if (event.target.tagName.toLowerCase() !== 'a') {
onClick(event);
}
}