Skip to content

Commit 433b333

Browse files
committed
stop an unhelpful barfage if a custom element does not exist inside a component, which makes it a bit easier to debug
1 parent bac1b90 commit 433b333

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

dist/v-2-10-0/activecss-2-10-0.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/v-2-10-0/activecss-core-dev-2-10-0.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ _a.CancelTimer = o => {
368368
let activeIDArr = [];
369369
// Loop the secSels in the delayArr.
370370
Object.keys(delayArr).forEach(function(key) {
371-
if (['~', '|'].includes(key.substr(0, 1))) return;
371+
if (key.indexOf('~') !== -1 || key.indexOf('|') !== -1) return;
372372
o.doc.querySelectorAll(key).forEach(function (obj, index) {
373373
activeIDArr.push(_getActiveID(obj));
374374
});
@@ -381,7 +381,7 @@ _a.CancelTimer = o => {
381381
_addCancelAttr(o.secSel, func);
382382
}
383383
} else {
384-
if (['~', '|'].includes(o.secSel.substr(0, 1))) {
384+
if (o.secSel.indexOf('~') !== -1 || o.secSel.indexOf('|') !== -1) {
385385
// If it's not in the delay arr we can ignore it.
386386
if (!delayArr[delayRef] || !delayArr[delayRef][func] || !delayArr[delayRef][func][o.actPos] || !delayArr[delayRef][func][o.actPos][o.intID] ||
387387
!delayArr[delayRef][func][o.actPos][o.intID][o.loopRef]) return;

dist/v-2-10-0/activecss-dev-2-10-0.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/v-2-10-0/full-source/prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ _a.CancelTimer = o => {
368368
let activeIDArr = [];
369369
// Loop the secSels in the delayArr.
370370
Object.keys(delayArr).forEach(function(key) {
371-
if (['~', '|'].includes(key.substr(0, 1))) return;
371+
if (key.indexOf('~') !== -1 || key.indexOf('|') !== -1) return;
372372
o.doc.querySelectorAll(key).forEach(function (obj, index) {
373373
activeIDArr.push(_getActiveID(obj));
374374
});
@@ -381,7 +381,7 @@ _a.CancelTimer = o => {
381381
_addCancelAttr(o.secSel, func);
382382
}
383383
} else {
384-
if (['~', '|'].includes(o.secSel.substr(0, 1))) {
384+
if (o.secSel.indexOf('~') !== -1 || o.secSel.indexOf('|') !== -1) {
385385
// If it's not in the delay arr we can ignore it.
386386
if (!delayArr[delayRef] || !delayArr[delayRef][func] || !delayArr[delayRef][func][o.actPos] || !delayArr[delayRef][func][o.actPos][o.intID] ||
387387
!delayArr[delayRef][func][o.actPos][o.intID][o.loopRef]) return;

src/commands/built-in/CancelTimer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ _a.CancelTimer = o => {
6363
let activeIDArr = [];
6464
// Loop the secSels in the delayArr.
6565
Object.keys(delayArr).forEach(function(key) {
66-
if (['~', '|'].includes(key.substr(0, 1))) return;
66+
if (key.indexOf('~') !== -1 || key.indexOf('|') !== -1) return;
6767
o.doc.querySelectorAll(key).forEach(function (obj, index) {
6868
activeIDArr.push(_getActiveID(obj));
6969
});
@@ -76,7 +76,7 @@ _a.CancelTimer = o => {
7676
_addCancelAttr(o.secSel, func);
7777
}
7878
} else {
79-
if (['~', '|'].includes(o.secSel.substr(0, 1))) {
79+
if (o.secSel.indexOf('~') !== -1 || o.secSel.indexOf('|') !== -1) {
8080
// If it's not in the delay arr we can ignore it.
8181
if (!delayArr[delayRef] || !delayArr[delayRef][func] || !delayArr[delayRef][func][o.actPos] || !delayArr[delayRef][func][o.actPos][o.intID] ||
8282
!delayArr[delayRef][func][o.actPos][o.intID][o.loopRef]) return;

0 commit comments

Comments
 (0)