Bug 640530 - Add missing 'var'. r=Mossop
authorTobias Markus <tobbi.bugs@googlemail.com>
Thu, 19 May 2011 08:25:25 +0200
changeset 69685 caba046161e5d8d127f86f7196d2dc50163f6527
parent 69684 fde29e9e42ac0a3cc230463c885249d18e318674
child 69686 d22583a11f15ce63bbadd9c4a000cc003151562c
push id20070
push userdgottwald@mozilla.com
push dateThu, 19 May 2011 06:26:13 +0000
treeherdermozilla-central@caba046161e5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs640530
milestone6.0a1
first release with
nightly linux32
caba046161e5 / 6.0a1 / 20110519030627 / files
nightly linux64
caba046161e5 / 6.0a1 / 20110519030627 / files
nightly mac
caba046161e5 / 6.0a1 / 20110519030627 / files
nightly win32
caba046161e5 / 6.0a1 / 20110519030627 / files
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
Bug 640530 - Add missing 'var'. r=Mossop
toolkit/mozapps/extensions/content/extensions.js
--- a/toolkit/mozapps/extensions/content/extensions.js
+++ b/toolkit/mozapps/extensions/content/extensions.js
@@ -1291,17 +1291,17 @@ function sortElements(aElements, aSortBy
 
   function getValue(aObj, aKey) {
     if (!aObj)
       return null;
 
     if (aObj.hasAttribute(aKey))
       return aObj.getAttribute(aKey);
 
-    addon = aObj.mAddon || aObj.mInstall;
+    var addon = aObj.mAddon || aObj.mInstall;
     if (!addon)
       return null;
 
     if (aKey == "uiState") {
       if (addon.pendingOperations == AddonManager.PENDING_DISABLE)
         return "pendingDisable";
       if (addon.pendingOperations == AddonManager.PENDING_UNINSTALL)
         return "pendingUninstall";