Skip to content

Commit

Permalink
fix(utils.js): fix lint errors
Browse files Browse the repository at this point in the history
Closes #1895
  • Loading branch information
Aleksandyr committed Feb 7, 2019
1 parent 04f0b43 commit ab5d87e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/js/modules/infragistics.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ab5d87e

Please sign in to comment.