зеркало из https://github.com/mozilla/ubiquity.git
Removed misplaced QueryInterface() from each *Utils.
This commit is contained in:
Родитель
87d0ae6550
Коммит
ac7499c03e
|
@ -91,6 +91,7 @@ for each (let g in ["document", "documentInsecure",
|
|||
"geoLocation"]) {
|
||||
CmdUtils.__defineGetter__(g, this["get" + g[0].toUpperCase() + g.slice(1)]);
|
||||
}
|
||||
delete CmdUtils.QueryInterface;
|
||||
|
||||
this.doAt = function doAt(code, keys) {
|
||||
for each (let key in keys) doAt.it += (";" + code).replace(/@/g, key);
|
||||
|
|
|
@ -40,10 +40,10 @@ var EXPORTED_SYMBOLS = ["DbUtils"];
|
|||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
// Make a namespace object called DbUtils, to export,
|
||||
// which contains each function in this file.
|
||||
var DbUtils = ([f for each (f in this) if (typeof f === "function")]
|
||||
.reduce(function(o, f)(o[f.name] = f, o), {}));
|
||||
var DbUtils = {};
|
||||
|
||||
for each (let f in this) if (typeof f === "function") DbUtils[f.name] = f;
|
||||
delete DbUtils.QueryInterface;
|
||||
|
||||
// === {{{ DbUtils.connectLite(tableName, schemaDict, initialRows, file) }}}
|
||||
// Creates a simple DB file in the user's profile directory (if nonexistent)
|
||||
|
|
|
@ -50,8 +50,8 @@ var EXPORTED_SYMBOLS = ["NounUtils"];
|
|||
|
||||
var NounUtils = {};
|
||||
|
||||
// assign each function in this file
|
||||
for each (let f in this) if (typeof f === "function") NounUtils[f.name] = f;
|
||||
delete NounUtils.QueryInterface;
|
||||
|
||||
Components.utils.import("resource://ubiquity/modules/utils.js");
|
||||
|
||||
|
|
|
@ -145,6 +145,7 @@ for each (let f in [
|
|||
Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime).OS,
|
||||
|
||||
]) defineLazyProperty(Utils, f);
|
||||
delete Utils.QueryInterface;
|
||||
|
||||
// === {{{ Utils.log(a, b, c, ...) }}} ===
|
||||
// One of the most useful functions to know both for development and debugging.
|
||||
|
|
Загрузка…
Ссылка в новой задаче