Bug 510724 - JavaScript warning when hitting "n" to go to the next unread message; r=asuth sr=bienvenu
authorBlake Winton <bwinton@latte.ca>
Tue, 18 Aug 2009 02:42:16 +0200
changeset 3320 d13680105f86cce290d8419a6e088f62e2e04f1c
parent 3319 ee5aea1c43c60e58b67376626822d7c6a8720130
child 3321 5a559b16fedc965d13df8cd392642fed17ae860a
push idunknown
push userunknown
push dateunknown
reviewersasuth, bienvenu
bugs510724
Bug 510724 - JavaScript warning when hitting "n" to go to the next unread message; r=asuth sr=bienvenu
mail/base/content/msgViewNavigation.js
suite/mailnews/msgViewNavigation.js
--- a/mail/base/content/msgViewNavigation.js
+++ b/mail/base/content/msgViewNavigation.js
@@ -122,17 +122,17 @@ function FindNextFolder()
     folder = parent;
   }
 
   // nothing in the current account, start with the next account (below)
   // and try until we hit the bottom of the folder pane
 
   // start at the account after the current account
   var rootFolders = GetRootFoldersInFolderPaneOrder();
-  for (i = 0; i < rootFolders.length; i++) {
+  for (var i = 0; i < rootFolders.length; i++) {
     if (rootFolders[i].URI == gDBView.msgFolder.server.serverURI)
       break;
   }
   
   for (var j = i + 1; j < rootFolders.length; j++) {
     folder = FindNextChildFolder(rootFolders[j], null);
     if (folder)
       return folder;
--- a/suite/mailnews/msgViewNavigation.js
+++ b/suite/mailnews/msgViewNavigation.js
@@ -122,17 +122,17 @@ function FindNextFolder()
     folder = parent;
   }
 
   // nothing in the current account, start with the next account (below)
   // and try until we hit the bottom of the folder pane
 
   // start at the account after the current account
   var rootFolders = GetRootFoldersInFolderPaneOrder();
-  for (i = 0; i < rootFolders.length; i++) {
+  for (var i = 0; i < rootFolders.length; i++) {
     if (rootFolders[i].URI == gDBView.msgFolder.server.serverURI)
       break;
   }
   
   for (var j = i + 1; j < rootFolders.length; j++) {
     folder = FindNextChildFolder(rootFolders[j], null);
     if (folder)
       return folder;