@danielgindi/dom-utils 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.es6.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/dom-utils 1.0.8
2
+ * @danielgindi/dom-utils 1.0.9
3
3
  * git://github.com/danielgindi/dom-utils.git
4
4
  */
5
5
  /**
@@ -616,8 +616,7 @@ const remove = function (el) {
616
616
 
617
617
  if ('remove' in el)
618
618
  el.remove();
619
-
620
- if (el.parentNode)
619
+ else if (el.parentNode)
621
620
  el.parentNode.removeChild(el);
622
621
  };
623
622
 
@@ -750,7 +749,7 @@ const detectScopedSelectorFeature = () => {
750
749
  try {
751
750
  document.createElement('div').querySelector(':scope > div');
752
751
  hasScopedQuerySelector = true;
753
- } catch (err) {
752
+ } catch (ignored) {
754
753
  hasScopedQuerySelector = false;
755
754
  }
756
755
  };