From e45b25e08ed13ae063a9d2f2382f6459bc564cff Mon Sep 17 00:00:00 2001 From: GeoSot Date: Wed, 14 Jul 2021 09:08:10 +0300 Subject: util.js: remove `Selector.findOne()` dependency (#34441) Co-authored-by: XhmikosR --- js/src/util/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'js/src/util') diff --git a/js/src/util/index.js b/js/src/util/index.js index 7c317b0162..a1af87aa47 100644 --- a/js/src/util/index.js +++ b/js/src/util/index.js @@ -1,4 +1,3 @@ -import SelectorEngine from '../dom/selector-engine' /** * -------------------------------------------------------------------------- @@ -120,7 +119,7 @@ const getElement = obj => { } if (typeof obj === 'string' && obj.length > 0) { - return SelectorEngine.findOne(obj) + return document.querySelector(obj) } return null -- cgit v1.2.3