noIDcheck instead

This commit is contained in:
Barbara Miller 2018-03-13 17:52:06 -07:00
parent cd3fa154d9
commit 409017c47f

View File

@ -33,7 +33,7 @@ class UmbraBehavior {
// should match older default and simpleclicks behavior, and more
var k = this.index;
var selector = this.actions[k].selector;
var idCheck = this.actions[k].idcheck === false ? this.actions[k].idcheck : true;
var noIDCheck = this.actions[k].noIDcheck ? this.actions[k].noIDcheck : false;
var action = this.actions[k].do ? this.actions[k].do : 'click';
var closeSelector = this.actions[k].closeSelector ? this.actions[k].closeSelector : null;
var didSomething = false;
@ -63,7 +63,7 @@ class UmbraBehavior {
continue;
}
for ( var i = 0; i < doTargetsLength; i++) {
if (idCheck && this.alreadyDone.indexOf(doTargets[i]) > -1) {
if (not noIDCheck && this.alreadyDone.indexOf(doTargets[i]) > -1) {
continue;
}
if (!this.isVisible(doTargets[i])) {