vrembem 3.0.20 → 3.0.21

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.
@@ -663,15 +663,8 @@
663
663
  }
664
664
  function setInert(state, selector) {
665
665
  if (selector) {
666
- var els = document.querySelectorAll(selector);
667
- els.forEach(function (el) {
668
- if (state) {
669
- el.inert = true;
670
- el.setAttribute("aria-hidden", true);
671
- } else {
672
- el.inert = null;
673
- el.removeAttribute("aria-hidden");
674
- }
666
+ document.querySelectorAll(selector).forEach(function (el) {
667
+ el.inert = state;
675
668
  });
676
669
  }
677
670
  }
@@ -883,27 +876,27 @@
883
876
  if (index >= 0) {
884
877
  var _temp2 = function _temp2() {
885
878
  // Remove entry from local store.
886
- _this.store.set(_entry.id);
879
+ _this.store.set(entry.id);
887
880
 
888
881
  // Unmount the MatchMedia functionality.
889
- _entry.unmountBreakpoint();
882
+ entry.unmountBreakpoint();
890
883
 
891
884
  // Delete properties from collection entry.
892
- Object.getOwnPropertyNames(_entry).forEach(function (prop) {
893
- delete _entry[prop];
885
+ Object.getOwnPropertyNames(entry).forEach(function (prop) {
886
+ delete entry[prop];
894
887
  });
895
888
 
896
889
  // Remove entry from collection.
897
890
  _this.collection.splice(index, 1);
898
891
  };
899
892
  // Get the collection entry.
900
- var _entry = _this.collection[index];
893
+ var entry = _this.collection[index];
901
894
 
902
895
  // If entry is in the opened state.
903
896
  var _temp = function () {
904
- if (close && _entry.state === "opened") {
897
+ if (close && entry.state === "opened") {
905
898
  // Close the drawer.
906
- return Promise.resolve(_entry.close(false)).then(function () {});
899
+ return Promise.resolve(entry.close(false)).then(function () {});
907
900
  }
908
901
  }();
909
902
  return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
@@ -1667,28 +1660,28 @@
1667
1660
  if (index >= 0) {
1668
1661
  var _temp2 = function _temp2() {
1669
1662
  // Return teleported modal if a reference has been set.
1670
- if (_entry.getSetting("teleport")) {
1671
- _entry.teleportReturn();
1663
+ if (entry.getSetting("teleport")) {
1664
+ entry.teleportReturn();
1672
1665
  }
1673
1666
 
1674
1667
  // Delete properties from collection entry.
1675
- Object.getOwnPropertyNames(_entry).forEach(function (prop) {
1676
- delete _entry[prop];
1668
+ Object.getOwnPropertyNames(entry).forEach(function (prop) {
1669
+ delete entry[prop];
1677
1670
  });
1678
1671
 
1679
1672
  // Remove entry from collection.
1680
1673
  _this.collection.splice(index, 1);
1681
1674
  };
1682
1675
  // Get the collection entry.
1683
- var _entry = _this.collection[index];
1676
+ var entry = _this.collection[index];
1684
1677
 
1685
1678
  // If entry is in the opened state, close it.
1686
1679
  var _temp = function () {
1687
- if (close && _entry.state === "opened") {
1688
- return Promise.resolve(_entry.close(false)).then(function () {});
1680
+ if (close && entry.state === "opened") {
1681
+ return Promise.resolve(entry.close(false)).then(function () {});
1689
1682
  } else {
1690
1683
  // Remove modal from stack.
1691
- _this.stack.remove(_entry);
1684
+ _this.stack.remove(entry);
1692
1685
  }
1693
1686
  }();
1694
1687
  return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);