Skip to content

Commit

Permalink
Rename: windowsObserver -> privateTab
Browse files Browse the repository at this point in the history
(better for debug things like built-in profiler)
  • Loading branch information
Infocatcher committed May 16, 2014
1 parent 27e153d commit 11e28b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ function install(params, reason) {
function uninstall(params, reason) {
}
function startup(params, reason) {
windowsObserver.init(reason);
privateTab.init(reason);
}
function shutdown(params, reason) {
windowsObserver.destroy(reason);
privateTab.destroy(reason);
}

var windowsObserver = {
var privateTab = {
initialized: false,
init: function(reason) {
if(this.initialized)
Expand Down Expand Up @@ -3789,7 +3789,7 @@ var windowsObserver = {
}
};

var privateTabInternal = windowsObserver;
var privateTabInternal = privateTab;
function API(window) {
this.window = window;
}
Expand Down Expand Up @@ -3864,7 +3864,7 @@ var prefs = {
}
//~ todo: add condition when https://bugzilla.mozilla.org/show_bug.cgi?id=564675 will be fixed
this.loadDefaultPrefs();
if(windowsObserver.isSeaMonkey) {
if(privateTab.isSeaMonkey) {
var defaultBranch = Services.prefs.getDefaultBranch("");
this.setPref(this.ns + "dragAndDropTabsBetweenDifferentWindows", false, defaultBranch);
this.setPref(this.ns + "patchDownloads", false, defaultBranch);
Expand Down Expand Up @@ -3895,7 +3895,7 @@ var prefs = {
var shortName = pName.substr(this.ns.length);
var val = this.getPref(pName);
this._cache[shortName] = val;
windowsObserver.prefChanged(shortName, val);
privateTab.prefChanged(shortName, val);
},

loadDefaultPrefs: function() {
Expand Down

0 comments on commit 11e28b8

Please sign in to comment.