Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Commit

Permalink
update deprecated package names
Browse files Browse the repository at this point in the history
  • Loading branch information
ttaubert committed Mar 17, 2014
1 parent 26e0fb3 commit 0ad6134
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/core/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*
* ***** END LICENSE BLOCK ***** */

let {storage} = require("simple-storage");
let {storage} = require("sdk/simple-storage");
let {Shortcut} = require("core/shortcut");
let {serialize, unserialize} = require("util/serialization");

Expand Down
22 changes: 11 additions & 11 deletions lib/prefs/prefpane.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
*
* ***** END LICENSE BLOCK ***** */

let self = require("sdk/self");
let {Keys} = require("core/key");
let winUtils = require("sdk/deprecated/window-utils");
let {TreeView} = require("prefs/treeview");
let {Overlays} = require("core/overlay");
let {PreferenceTree} = require("prefs/tree");
Expand All @@ -47,39 +49,37 @@ let delegate = {
onUntrack: function () {}
};

let winUtils = require("window-utils");
let windowTracker = new winUtils.WindowTracker(delegate);

let PreferencePane = function (window) {
this.window = window;

this._createStylesheet(require("self").data.url("prefs.css"));
this._createStylesheet(self.data.url("prefs.css"));

this.element = this._createElement("prefpane");
this.element.setAttribute("id", "paneShortcuts");
this.element.setAttribute("label", "Shortcuts");

this.element.appendChild(this._createElement("preferences"));

this.prefwindow = window.document.documentElement;
let prefwindow = window.document.documentElement;
this.prefwindow = prefwindow;
this.prefwindow.addPane(this.element);

window.sizeToContent();
window.centerWindowOnScreen();

let self = this;

let onSelect = function () {
if (self.element.selected)
self.show();
if (this.element.selected)
this.show();
else
self.hide();
};
this.hide();
}.bind(this);

window.addEventListener("select", function (event) {
if (self.prefwindow == event.target)
if (prefwindow == event.target)
window.setTimeout(onSelect, 0);
}, false);
}.bind(this), false);
}

PreferencePane.prototype = {
Expand Down
2 changes: 1 addition & 1 deletion lib/util/windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
const WINDOW_TYPE = "navigator:browser";

let winUtils = require("window-utils");
let winUtils = require("sdk/deprecated/window-utils");
let windowIterator = winUtils.windowIterator;

let listeners = [];
Expand Down

0 comments on commit 0ad6134

Please sign in to comment.