mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 622238 - In tests: JavaScript Warning: "assignment to undeclared variable item" {file: "chrome://browser/content/tabview.js" line: 7374} [r=dao, a=beltzner]
This commit is contained in:
parent
57669f34ef
commit
ee1cd30325
@ -858,16 +858,15 @@ let UI = {
|
||||
getClosestTab: function UI_getClosestTab(tabCenter) {
|
||||
let cl = null;
|
||||
let clDist;
|
||||
for each(item in TabItems.getItems()) {
|
||||
if (item.parent && item.parent.hidden) {
|
||||
continue;
|
||||
}
|
||||
TabItems.getItems().forEach(function (item) {
|
||||
if (item.parent && item.parent.hidden)
|
||||
return;
|
||||
let testDist = tabCenter.distance(item.bounds.center());
|
||||
if (cl==null || testDist < clDist) {
|
||||
cl = item;
|
||||
clDist = testDist;
|
||||
}
|
||||
}
|
||||
});
|
||||
return cl;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user