From 27badc60cd7dbb69daa8438d4384f1b1be2731b6 Mon Sep 17 00:00:00 2001 From: int3 Date: Sat, 3 Apr 2010 14:20:21 +0800 Subject: Stylistic modifications and update of comments --- background_page.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'background_page.html') diff --git a/background_page.html b/background_page.html index f580acdc..82ae8c6d 100644 --- a/background_page.html +++ b/background_page.html @@ -319,16 +319,16 @@ // ensure that openTabs is populated upon the install of the extension chrome.windows.getAll({ populate: true }, function(windows) { - for (var i in windows) for (var j in windows[i].tabs) { - var tab = windows[i].tabs[j]; - updateOpenTabs(tab); - getScrollPosition(tab, function(tab, scrollX, scrollY) { - // not using the tab defined in the for loop because - // it might have changed by the time this callback is activated. - // also note that this logs errors for all pages that do not allow - // content scripts to be run. - updateScrollPosition(tab, scrollX, scrollY); - }); + for (var i in windows) { + for (var j in windows[i].tabs) { + var tab = windows[i].tabs[j]; + updateOpenTabs(tab); + getScrollPosition(tab, function(tab, scrollX, scrollY) { + // not using the tab defined in the for loop because + // it might have changed by the time this callback is activated. + updateScrollPosition(tab, scrollX, scrollY); + }); + } } }); -- cgit v1.2.3