Skip to content

Commit

Permalink
fix for...of return issue (#782)
Browse files Browse the repository at this point in the history
Co-authored-by: cchintoi <[email protected]>
  • Loading branch information
kinkoazc and cchintoi authored Mar 8, 2024
1 parent 4d2a16d commit 5c40894
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -2389,7 +2389,7 @@ var Gmail = function(localJQuery) {
// loop through applicable types
var types = type ? [ type ] : [ "before", "on", "after", "dom" ];
for (let type of types) {
if(typeof api.tracker.watchdog[type] !== "object") return true; // no callbacks for this type
if(typeof api.tracker.watchdog[type] !== "object") continue; // no callbacks for this type

// if action specified, remove any callbacks for this action, otherwise remove all callbacks for all actions
if(action) {
Expand Down Expand Up @@ -2767,7 +2767,7 @@ var Gmail = function(localJQuery) {
for (let className of classes) {
var observers = dom_observer_map[className];
if (!observers) {
return;
continue;
}

for (var observer of observers) {
Expand All @@ -2779,7 +2779,7 @@ var Gmail = function(localJQuery) {

// if a config id specified for this observer, ensure it matches for this element
if(config.selector && !element.is(config.selector)) {
return;
break;
}

// check for any defined sub_selector match - if not found, then this is not a match for this observer
Expand Down

0 comments on commit 5c40894

Please sign in to comment.