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 288036 b6e38de09b1a8f6e5a04c899006943c810761354
parent 288035 36bd53d339e68ef345ae92dbacfa749c67dcc2d0
child 288037 96341def118fa560d787126e445453ace52c75fd
push id18114
push usermleibovic@mozilla.com
push dateThu, 10 Mar 2016 17:10:10 +0000
treeherderfx-team@b6e38de09b1a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1147211
milestone48.0a1
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 ---------- */
 
   /*