From 1d2744d7b98a0a55da255fedbbdbf2ac35caab4b Mon Sep 17 00:00:00 2001 From: grafixeyehero Date: Wed, 16 Oct 2019 19:23:50 +0300 Subject: [PATCH] update channelmapper suggestion change --- src/components/channelmapper/channelmapper.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/channelmapper/channelmapper.js b/src/components/channelmapper/channelmapper.js index 841a6a81a..d1fdcb198 100644 --- a/src/components/channelmapper/channelmapper.js +++ b/src/components/channelmapper/channelmapper.js @@ -3,9 +3,8 @@ define(["dialogHelper", "loading", "connectionManager", "globalize", "actionshee return function (options) { function parentWithClass(elem, className) { - while (!elem.classList || !elem.classList.contains(className)) { - elem = elem.parentNode; - if (!elem) { + for (; !elem.classList || !elem.classList.contains(className);) { + if (!(elem = elem.parentNode)) { return null; } }