Bug 879941 - Fix typo in LightweightThemeManager.jsm. r=Unfocused

--HG--
extra : rebase_source : b1c77d825c620887b7b9bcbdb3e32150dd99f200
This commit is contained in:
Jared Wein 2013-06-06 19:10:46 -04:00
parent 0f7894bf64
commit 89a0703c4c

View File

@ -67,7 +67,7 @@ this.__defineSetter__("_maxUsedThemes", function maxUsedThemesSetter(aVal) {
// events so cached AddonWrapper instances can return correct values for
// permissions and pendingOperations
var _themeIDBeingEnabled = null;
var _themeIDBeingDisbled = null;
var _themeIDBeingDisabled = null;
this.LightweightThemeManager = {
get usedThemes () {
@ -315,7 +315,7 @@ this.LightweightThemeManager = {
if (current) {
if (current.id == id)
return;
_themeIDBeingDisbled = current.id;
_themeIDBeingDisabled = current.id;
let wrapper = new AddonWrapper(current);
if (aPendingRestart) {
Services.prefs.setCharPref(PREF_LWTHEME_TO_SELECT, "");
@ -326,7 +326,7 @@ this.LightweightThemeManager = {
this.themeChanged(null);
AddonManagerPrivate.callAddonListeners("onDisabled", wrapper);
}
_themeIDBeingDisbled = null;
_themeIDBeingDisabled = null;
}
if (id) {
@ -474,7 +474,7 @@ function AddonWrapper(aTheme) {
this.__defineGetter__("userDisabled", function AddonWrapper_userDisabledGetter() {
if (_themeIDBeingEnabled == aTheme.id)
return false;
if (_themeIDBeingDisbled == aTheme.id)
if (_themeIDBeingDisabled == aTheme.id)
return true;
try {