From 1febc8588c318f08ccf785f59932cd2ac308eb08 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Thu, 4 Mar 2021 14:40:41 +0530 Subject: [PATCH] #81 globals $ removed --- src/editor/components/seColorPicker.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/editor/components/seColorPicker.js b/src/editor/components/seColorPicker.js index 94b3f8d9..233c6211 100644 --- a/src/editor/components/seColorPicker.js +++ b/src/editor/components/seColorPicker.js @@ -1,6 +1,4 @@ -/* globals $ */ import {jGraduate, jGraduateMethod} from './jgraduate/jQuery.jGraduate.js'; -// import jQueryPluginJPicker from './jgraduate/jQuery.jPicker.js'; import PaintBox from './PaintBox.js'; const template = document.createElement('template'); @@ -170,7 +168,7 @@ export class SeColorPicker extends HTMLElement { */ connectedCallback () { this.paintBox = new PaintBox(this.$block, this.type); - $(this.$picker).click(() => { + this.$picker.addEventListener('click', () => { let {paint} = this.paintBox; jGraduateMethod( this.$color_picker,