Specify loop for continuing
This commit is contained in:
parent
31dd47268f
commit
06b9b28a23
|
@ -10,6 +10,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
var links = document.getElementsByTagName('a');
|
var links = document.getElementsByTagName('a');
|
||||||
|
main_loop:
|
||||||
for (var i = 0; i < links.length; i++) {
|
for (var i = 0; i < links.length; i++) {
|
||||||
var el = links[i],
|
var el = links[i],
|
||||||
href = el.getAttribute('href');
|
href = el.getAttribute('href');
|
||||||
|
@ -28,7 +29,7 @@
|
||||||
el.addEventListener('mouseover', function(e) {
|
el.addEventListener('mouseover', function(e) {
|
||||||
log('Link contains a stop-word "'+ word +'":', href);
|
log('Link contains a stop-word "'+ word +'":', href);
|
||||||
});
|
});
|
||||||
continue;
|
continue main_loop;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue