From ab5d87e922390bd6e98e08b9c14765e1591b4057 Mon Sep 17 00:00:00 2001 From: Aleksandar Kamenov Date: Thu, 7 Feb 2019 09:50:27 +0200 Subject: [PATCH] fix(utils.js): fix lint errors Closes #1895 --- src/js/modules/infragistics.util.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/js/modules/infragistics.util.js b/src/js/modules/infragistics.util.js index 8fd27f602..ca4cb4495 100644 --- a/src/js/modules/infragistics.util.js +++ b/src/js/modules/infragistics.util.js @@ -1531,13 +1531,18 @@ } // polyfill for IE11+. ChildNode.remove() is not supported by IE11+. - function remove() { + function remove() { return this.parentNode && this.parentNode.removeChild(this); } - + // polyfill for IE11+. ChildNode.remove() is not supported by IE11+. - if (!Element.prototype.remove) Element.prototype.remove = remove; - if (Text && !Text.prototype.remove) Text.prototype.remove = remove; + if (!Element.prototype.remove) { + Element.prototype.remove = remove; + } + + if (Text && !Text.prototype.remove) { + Text.prototype.remove = remove; + } $.ig.Date.prototype.toStringFormat = function (value, format, provider) { var result;