Skip to content

Commit 33e560b

Browse files
author
kiselev
committed
Added MutationObserver to globals in jshint config and removed jshint ignore
1 parent 7580560 commit 33e560b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.jshintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"exports": true,
1010
"define": true,
1111
"SVGElement": true,
12+
"MutationObserver": true,
1213
"Element": true,
1314
"module": true,
1415
"console": true,

src/util/waitForElement.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export default function _waitForElement(elSelector, callback) {
1313
}
1414

1515
if (typeof MutationObserver !== "undefined") {
16-
/* jshint ignore:start */
1716
const observer = new MutationObserver(() => {
1817
if (document.querySelector(elSelector) !== null) {
1918
observer.disconnect();
@@ -27,7 +26,6 @@ export default function _waitForElement(elSelector, callback) {
2726
attributes: false,
2827
characterData: false,
2928
});
30-
/* jshint ignore:end */
3129
} else {
3230
// Old browsers will wait by timeout
3331
waitForElementByTimeout(elSelector, callback, 1000, 10000);

0 commit comments

Comments
 (0)