Bug 1147211 - Replace usages of var with let in LoginManagerPrompter.js in nested code. r=margaret
authorStanislas Dolcini <dolcinis@uni.coventry.ac.uk>
Fri, 30 Oct 2015 15:31:25 +0000
changeset 325909 b6e38de09b1a8f6e5a04c899006943c810761354
parent 325908 36bd53d339e68ef345ae92dbacfa749c67dcc2d0
child 325910 96341def118fa560d787126e445453ace52c75fd
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1147211
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1147211 - Replace usages of var with let in LoginManagerPrompter.js in nested code. r=margaret MozReview-Commit-ID: 7SJtMr5vVMD
mobile/android/components/LoginManagerPrompter.js
--- a/mobile/android/components/LoginManagerPrompter.js
+++ b/mobile/android/components/LoginManagerPrompter.js
@@ -54,17 +54,17 @@ LoginManagerPrompter.prototype = {
       this.__promptService = Cc["@mozilla.org/embedcomp/prompt-service;1"].
                              getService(Ci.nsIPromptService2);
     return this.__promptService;
   },
 
   __strBundle : null, // String bundle for L10N
   get _strBundle() {
     if (!this.__strBundle) {
-      var bunService = Cc["@mozilla.org/intl/stringbundle;1"].
+      let bunService = Cc["@mozilla.org/intl/stringbundle;1"].
                        getService(Ci.nsIStringBundleService);
       this.__strBundle = {
         pwmgr : bunService.createBundle("chrome://passwordmgr/locale/passwordmgr.properties"),
         brand : bunService.createBundle("chrome://branding/locale/brand.properties")
       };
 
       if (!this.__strBundle)
         throw "String bundle for Login Manager not present!";
@@ -296,17 +296,17 @@ LoginManagerPrompter.prototype = {
     // If user selects ok, outparam.value is set to the index
     // of the selected username.
     var ok = this._promptService.select(null,
       dialogTitle, dialogText,
       usernames.length, usernames,
       selectedIndex);
     if (ok) {
       // Now that we know which login to use, modify its password.
-      var selectedLogin = logins[selectedIndex.value];
+      let selectedLogin = logins[selectedIndex.value];
       this.log("Updating password for user " + selectedLogin.username);
       this._updateLogin(selectedLogin, aNewLogin.password);
     }
   },
 
   /* ---------- Internal Methods ---------- */
 
   /*