Skip to content

Commit

Permalink
Merge pull request #35 from dgrammatiko/patch-8
Browse files Browse the repository at this point in the history
HoundCI
  • Loading branch information
wilsonge authored Jul 6, 2018
2 parents 838bb7c + 2641db9 commit 9e4af4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
9 changes: 0 additions & 9 deletions media/system/webcomponents/js/joomla-tab-es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
_this.tabs = [];
return _this;
}
/*eslint-enable */


/* Lifecycle, element appended to the DOM */

Expand Down Expand Up @@ -387,14 +385,11 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
this.querySelector('ul').addEventListener('keyup', keyBehaviour);
}

/*eslint-disable */

}, {
key: 'getStorageKey',
value: function getStorageKey() {
return window.location.href.toString().split(window.location.host)[1].replace(/&return=[a-zA-Z0-9%]+/, '').split('#')[0];
}
/*eslint-disable */

}, {
key: 'saveState',
Expand Down Expand Up @@ -455,18 +450,14 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
}
}

/*eslint-disable */

}, {
key: 'findAncestor',
value: function findAncestor(el, tagName) {
while ((el = el.parentElement) && el.nodeName.toLowerCase() !== tagName) {}
return el;
}
/*eslint-enable */

/* Method to dispatch events */
/*eslint-disable */

}, {
key: 'dispatchCustomEvent',
Expand Down
6 changes: 0 additions & 6 deletions media/system/webcomponents/js/joomla-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,9 @@
this.querySelector('ul').addEventListener('keyup', keyBehaviour);
}

/*eslint-disable */
getStorageKey() {
return window.location.href.toString().split(window.location.host)[1].replace(/&return=[a-zA-Z0-9%]+/, '').split('#')[0];
}
/*eslint-disable */

saveState(value) {
const storageKey = this.getStorageKey();
Expand Down Expand Up @@ -386,21 +384,17 @@
}
}

/*eslint-disable */
findAncestor(el, tagName) {
while ((el = el.parentElement) && el.nodeName.toLowerCase() !== tagName);
return el;
}
/*eslint-enable */

/* Method to dispatch events */
/*eslint-disable */
dispatchCustomEvent(eventName, element, related) {
const OriginalCustomEvent = new CustomEvent(eventName, { bubbles: true, cancelable: true });
OriginalCustomEvent.relatedTarget = related;
element.dispatchEvent(OriginalCustomEvent);
element.removeEventListener(eventName, element);
}
/*eslint-enable */
});
})();

0 comments on commit 9e4af4f

Please sign in to comment.