mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 08:27:59 +01:00
Formatting fixes.
This commit is contained in:
@@ -147,7 +147,7 @@ const AutoCommands = Module("autocommands", {
|
|||||||
}, {
|
}, {
|
||||||
matchAutoCmd: function (autoCmd, event, regex) {
|
matchAutoCmd: function (autoCmd, event, regex) {
|
||||||
return (!event || autoCmd.event == event) && (!regex || autoCmd.pattern.source == regex);
|
return (!event || autoCmd.event == event) && (!regex || autoCmd.pattern.source == regex);
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
commands: function () {
|
commands: function () {
|
||||||
commands.add(["au[tocmd]"],
|
commands.add(["au[tocmd]"],
|
||||||
@@ -271,7 +271,7 @@ const AutoCommands = Module("autocommands", {
|
|||||||
options.add(["focuscontent", "fc"],
|
options.add(["focuscontent", "fc"],
|
||||||
"Try to stay in normal mode after loading a web page",
|
"Try to stay in normal mode after loading a web page",
|
||||||
"boolean", false);
|
"boolean", false);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ function curry(fn, length, self, acc) {
|
|||||||
if (length == 0)
|
if (length == 0)
|
||||||
return fn;
|
return fn;
|
||||||
|
|
||||||
/* Close over function with 'this' */
|
// Close over function with 'this'
|
||||||
function close(self, fn) function () fn.apply(self, Array.slice(arguments));
|
function close(self, fn) function () fn.apply(self, Array.slice(arguments));
|
||||||
|
|
||||||
if (acc == null)
|
if (acc == null)
|
||||||
@@ -214,7 +214,7 @@ function curry(fn, length, self, acc) {
|
|||||||
return function () {
|
return function () {
|
||||||
let args = acc.concat(Array.slice(arguments));
|
let args = acc.concat(Array.slice(arguments));
|
||||||
|
|
||||||
/* The curried result should preserve 'this' */
|
// The curried result should preserve 'this'
|
||||||
if (arguments.length == 0)
|
if (arguments.length == 0)
|
||||||
return close(self || this, arguments.callee);
|
return close(self || this, arguments.callee);
|
||||||
|
|
||||||
|
|||||||
@@ -198,7 +198,6 @@ const Bookmarks = Module("bookmarks", {
|
|||||||
storage.addObserver("bookmark-cache", bookmarkObserver, window);
|
storage.addObserver("bookmark-cache", bookmarkObserver, window);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
get format() ({
|
get format() ({
|
||||||
anchored: false,
|
anchored: false,
|
||||||
title: ["URL", "Info"],
|
title: ["URL", "Info"],
|
||||||
@@ -680,7 +679,7 @@ const Bookmarks = Module("bookmarks", {
|
|||||||
completion.addUrlCompleter("S", "Suggest engines", completion.searchEngineSuggest);
|
completion.addUrlCompleter("S", "Suggest engines", completion.searchEngineSuggest);
|
||||||
completion.addUrlCompleter("b", "Bookmarks", completion.bookmark);
|
completion.addUrlCompleter("b", "Bookmarks", completion.bookmark);
|
||||||
completion.addUrlCompleter("s", "Search engines and keyword URLs", completion.search);
|
completion.addUrlCompleter("s", "Search engines and keyword URLs", completion.search);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -1114,7 +1114,7 @@ const Buffer = Module("buffer", {
|
|||||||
completer: completion.file,
|
completer: completion.file,
|
||||||
default: elem.value
|
default: elem.value
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
commands: function () {
|
commands: function () {
|
||||||
commands.add(["frameo[nly]"],
|
commands.add(["frameo[nly]"],
|
||||||
@@ -1633,7 +1633,7 @@ const Buffer = Module("buffer", {
|
|||||||
setter: function (value) getBrowser().markupDocumentViewer.authorStyleDisabled = value,
|
setter: function (value) getBrowser().markupDocumentViewer.authorStyleDisabled = value,
|
||||||
getter: function () getBrowser().markupDocumentViewer.authorStyleDisabled
|
getter: function () getBrowser().markupDocumentViewer.authorStyleDisabled
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -160,7 +160,6 @@ const CommandLine = Module("commandline", {
|
|||||||
this._multilineRegexp = null;
|
this._multilineRegexp = null;
|
||||||
this._multilineCallback = null;
|
this._multilineCallback = null;
|
||||||
|
|
||||||
|
|
||||||
this._input = {};
|
this._input = {};
|
||||||
|
|
||||||
this.registerCallback("submit", modes.EX, function (command) {
|
this.registerCallback("submit", modes.EX, function (command) {
|
||||||
@@ -319,8 +318,6 @@ const CommandLine = Module("commandline", {
|
|||||||
this._multilineInputWidget.setAttribute("rows", Math.max(lines, 1));
|
this._multilineInputWidget.setAttribute("rows", Math.max(lines, 1));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
HL_NORMAL: "Normal",
|
HL_NORMAL: "Normal",
|
||||||
HL_ERRORMSG: "ErrorMsg",
|
HL_ERRORMSG: "ErrorMsg",
|
||||||
HL_MODEMSG: "ModeMsg",
|
HL_MODEMSG: "ModeMsg",
|
||||||
@@ -1398,7 +1395,7 @@ const CommandLine = Module("commandline", {
|
|||||||
arg = String(arg);
|
arg = String(arg);
|
||||||
|
|
||||||
return arg;
|
return arg;
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
commands: function () {
|
commands: function () {
|
||||||
[
|
[
|
||||||
@@ -1610,10 +1607,9 @@ const CommandLine = Module("commandline", {
|
|||||||
styles.registerSheet("chrome://liberator/skin/liberator.css");
|
styles.registerSheet("chrome://liberator/skin/liberator.css");
|
||||||
let error = styles.addSheet(true, "font-size", "chrome://liberator/content/buffer.xhtml",
|
let error = styles.addSheet(true, "font-size", "chrome://liberator/content/buffer.xhtml",
|
||||||
"body { font-size: " + fontSize + "; }");
|
"body { font-size: " + fontSize + "; }");
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The list which is used for the completion box (and QuickFix window in
|
* The list which is used for the completion box (and QuickFix window in
|
||||||
* future).
|
* future).
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ const Command = Class("Command", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return { names: names, longNames: longNames, shortNames: shortNames };
|
return { names: names, longNames: longNames, shortNames: shortNames };
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -855,7 +855,7 @@ const Commands = Module("commands", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return [len - str.length, arg, quote];
|
return [len - str.length, arg, quote];
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
mappings: function () {
|
mappings: function () {
|
||||||
mappings.add(config.browserModes,
|
mappings.add(config.browserModes,
|
||||||
|
|||||||
@@ -618,7 +618,7 @@ const CompletionContext = Class("CompletionContext", {
|
|||||||
textDescription: function (item) {
|
textDescription: function (item) {
|
||||||
return CompletionContext.Filter.text.call(this, item) || this.match(item.description);
|
return CompletionContext.Filter.text.call(this, item) || this.match(item.description);
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1260,7 +1260,7 @@ const Completion = Module("completion", {
|
|||||||
top[OFFSET] = o;
|
top[OFFSET] = o;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
EVAL_TMP: "__liberator_eval_tmp",
|
EVAL_TMP: "__liberator_eval_tmp",
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ const Editor = Module("editor", {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// For the record, some of this code I've just finished throwing
|
// For the record, some of this code I've just finished throwing
|
||||||
// away makes me want to pull someone else's hair out. --Kris
|
// away makes me want to pull someone else's hair out. --Kris
|
||||||
abbrevs: function () {
|
abbrevs: function () {
|
||||||
@@ -1069,7 +1068,7 @@ const Editor = Module("editor", {
|
|||||||
options.add(["insertmode", "im"],
|
options.add(["insertmode", "im"],
|
||||||
"Use Insert mode as the default for text areas",
|
"Use Insert mode as the default for text areas",
|
||||||
"boolean", true);
|
"boolean", true);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -1337,7 +1337,7 @@ const Events = Module("events", {
|
|||||||
statusline.updateBufferPosition();
|
statusline.updateBufferPosition();
|
||||||
modes.show();
|
modes.show();
|
||||||
}, null);
|
}, null);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -457,7 +457,7 @@ const Finder = Module("finder", {
|
|||||||
options.add(["smartcase", "scs"],
|
options.add(["smartcase", "scs"],
|
||||||
"Override the 'ignorecase' option if the pattern contains uppercase characters",
|
"Override the 'ignorecase' option if the pattern contains uppercase characters",
|
||||||
"boolean", true);
|
"boolean", true);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const RangeFinder = Module("rangefinder", {
|
const RangeFinder = Module("rangefinder", {
|
||||||
@@ -635,7 +635,7 @@ const RangeFinder = Module("rangefinder", {
|
|||||||
modes.addMode("FIND_BACKWARD", true);
|
modes.addMode("FIND_BACKWARD", true);
|
||||||
},
|
},
|
||||||
options: function () {
|
options: function () {
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const RangeFind = Class("RangeFind", {
|
const RangeFind = Class("RangeFind", {
|
||||||
@@ -909,7 +909,7 @@ const RangeFind = Class("RangeFind", {
|
|||||||
cancel: function () {
|
cancel: function () {
|
||||||
this.range.deselect();
|
this.range.deselect();
|
||||||
this.range.descroll()
|
this.range.descroll()
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
Range: Class("RangeFind.Range", {
|
Range: Class("RangeFind.Range", {
|
||||||
init: function (range, index) {
|
init: function (range, index) {
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ const History = Module("history", {
|
|||||||
["L", "<A-Right>", "<M-Right>"], "Go forward in the browser history",
|
["L", "<A-Right>", "<M-Right>"], "Go forward in the browser history",
|
||||||
function (count) { history.stepTo(Math.max(count, 1)); },
|
function (count) { history.stepTo(Math.max(count, 1)); },
|
||||||
{ count: true });
|
{ count: true });
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ const File = Class("File", {
|
|||||||
ofstream.close();
|
ofstream.close();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
/**
|
/**
|
||||||
* @property {number} Open for reading only.
|
* @property {number} Open for reading only.
|
||||||
@@ -239,7 +239,6 @@ const File = Class("File", {
|
|||||||
*/
|
*/
|
||||||
MODE_EXCL: 0x80,
|
MODE_EXCL: 0x80,
|
||||||
|
|
||||||
|
|
||||||
expandPathList: function (list) list.split(",").map(this.expandPath).join(","),
|
expandPathList: function (list) list.split(",").map(this.expandPath).join(","),
|
||||||
|
|
||||||
expandPath: function (path, relative) {
|
expandPath: function (path, relative) {
|
||||||
@@ -311,7 +310,7 @@ const File = Class("File", {
|
|||||||
catch (e) {
|
catch (e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: why are we passing around strings rather than file objects?
|
// TODO: why are we passing around strings rather than file objects?
|
||||||
@@ -490,7 +489,6 @@ const IO = Module("io", {
|
|||||||
return File(file);
|
return File(file);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runs an external program.
|
* Runs an external program.
|
||||||
*
|
*
|
||||||
@@ -798,12 +796,15 @@ lookup:
|
|||||||
return rtp;
|
return rtp;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property {string} The current platform's path seperator.
|
||||||
|
*/
|
||||||
get PATH_SEP() {
|
get PATH_SEP() {
|
||||||
delete this.PATH_SEP;
|
delete this.PATH_SEP;
|
||||||
let f = services.get("directory").get("CurProcD", Ci.nsIFile);
|
let f = services.get("directory").get("CurProcD", Ci.nsIFile);
|
||||||
f.append("foo");
|
f.append("foo");
|
||||||
return this.PATH_SEP = f.path.substr(f.parent.path.length, 1);
|
return this.PATH_SEP = f.path.substr(f.parent.path.length, 1);
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
commands: function () {
|
commands: function () {
|
||||||
commands.add(["cd", "chd[ir]"],
|
commands.add(["cd", "chd[ir]"],
|
||||||
@@ -1097,7 +1098,7 @@ lookup:
|
|||||||
options.add(["shellcmdflag", "shcf"],
|
options.add(["shellcmdflag", "shcf"],
|
||||||
"Flag passed to shell when executing :! and :run commands",
|
"Flag passed to shell when executing :! and :run commands",
|
||||||
"string", shellcmdflag);
|
"string", shellcmdflag);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ const Storage = Module("storage", {
|
|||||||
catch (e) {}
|
catch (e) {}
|
||||||
|
|
||||||
return this.storage;
|
return this.storage;
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function Runnable(self, func, args) {
|
function Runnable(self, func, args) {
|
||||||
@@ -46,7 +46,7 @@ function Runnable(self, func, args) {
|
|||||||
const FailedAssertion = Class("FailedAssertion", Error, {
|
const FailedAssertion = Class("FailedAssertion", Error, {
|
||||||
init: function (message) {
|
init: function (message) {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const Liberator = Module("liberator", {
|
const Liberator = Module("liberator", {
|
||||||
@@ -1077,7 +1077,7 @@ const Liberator = Module("liberator", {
|
|||||||
liberator.echo(template.usage(items), commandline.FORCE_MULTILINE);
|
liberator.echo(template.usage(items), commandline.FORCE_MULTILINE);
|
||||||
else
|
else
|
||||||
liberator.help(tag);
|
liberator.help(tag);
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|
||||||
// Only general options are added here, which are valid for all Liberator extensions
|
// Only general options are added here, which are valid for all Liberator extensions
|
||||||
@@ -1831,7 +1831,7 @@ const Liberator = Module("liberator", {
|
|||||||
|
|
||||||
statusline.update();
|
statusline.update();
|
||||||
liberator.log(config.name + " fully initialized", 0);
|
liberator.log(config.name + " fully initialized", 0);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -498,7 +498,7 @@ const Mappings = Module("mappings", {
|
|||||||
this._main[mode] = [];
|
this._main[mode] = [];
|
||||||
this._user[mode] = [];
|
this._user[mode] = [];
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ const Marks = Module("marks", {
|
|||||||
return lmarks.concat(umarks);
|
return lmarks.concat(umarks);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a named mark for the current buffer, at its current position.
|
* Add a named mark for the current buffer, at its current position.
|
||||||
* If mark matches [A-Z], it's considered a URL mark, and will jump to
|
* If mark matches [A-Z], it's considered a URL mark, and will jump to
|
||||||
@@ -337,7 +336,7 @@ const Marks = Module("marks", {
|
|||||||
context.keys.description = function ([, m]) percent(m.position.y) + "% " + percent(m.position.x) + "% " + m.location;
|
context.keys.description = function ([, m]) percent(m.position.y) + "% " + percent(m.position.x) + "% " + m.location;
|
||||||
context.completions = marks.all;
|
context.completions = marks.all;
|
||||||
};
|
};
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -394,7 +394,7 @@ const Option = Class("Option", {
|
|||||||
if (!res)
|
if (!res)
|
||||||
res = context.allItems.items.map(function (item) [item.text]);
|
res = context.allItems.items.map(function (item) [item.text]);
|
||||||
return Array.concat(values).every(function (value) res.some(function (item) item[0] == value));
|
return Array.concat(values).every(function (value) res.some(function (item) item[0] == value));
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -428,7 +428,6 @@ const Options = Module("options", {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function optionObserver(key, event, option) {
|
function optionObserver(key, event, option) {
|
||||||
// Trigger any setters.
|
// Trigger any setters.
|
||||||
let opt = options.get(option);
|
let opt = options.get(option);
|
||||||
@@ -890,7 +889,7 @@ const Options = Module("options", {
|
|||||||
catch (e) {
|
catch (e) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
SAVED: "extensions.liberator.saved.",
|
SAVED: "extensions.liberator.saved.",
|
||||||
OLD_SAVED: "liberator.saved.",
|
OLD_SAVED: "liberator.saved.",
|
||||||
@@ -1274,7 +1273,7 @@ const Options = Module("options", {
|
|||||||
context.keys = { text: function (item) item, description: function (item) options.getPref(item) };
|
context.keys = { text: function (item) item, description: function (item) options.getPref(item) };
|
||||||
context.completions = options.allPrefs();
|
context.completions = options.allPrefs();
|
||||||
};
|
};
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ const QuickMarks = Module("quickmarks", {
|
|||||||
quickmarks.add(arg, buffer.URL);
|
quickmarks.add(arg, buffer.URL);
|
||||||
},
|
},
|
||||||
{ arg: true });
|
{ arg: true });
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ const Sanitizer = Module("sanitizer", {
|
|||||||
],
|
],
|
||||||
validator: Option.validateCompleter
|
validator: Option.validateCompleter
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ const StatusLine = Module("statusline", {
|
|||||||
],
|
],
|
||||||
validator: Option.validateCompleter
|
validator: Option.validateCompleter
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -583,7 +583,7 @@ Module("styles", {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
return storage.newObject("styles", Styles, { store: false });
|
return storage.newObject("styles", Styles, { store: false });
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
}, {
|
}, {
|
||||||
commands: function () {
|
commands: function () {
|
||||||
@@ -703,7 +703,7 @@ Module("styles", {
|
|||||||
null,
|
null,
|
||||||
function (context, obj, args) args[0] ? styles.systemSheets : styles.userSheets
|
function (context, obj, args) args[0] ? styles.systemSheets : styles.userSheets
|
||||||
]);
|
]);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Module("highlight", {
|
Module("highlight", {
|
||||||
@@ -717,7 +717,7 @@ Module("highlight", {
|
|||||||
self.loadCSS(self.CSS);
|
self.loadCSS(self.CSS);
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
}, {
|
}, {
|
||||||
commands: function () {
|
commands: function () {
|
||||||
@@ -821,7 +821,7 @@ Module("highlight", {
|
|||||||
context.title = ["Highlight Group", "Value"];
|
context.title = ["Highlight Group", "Value"];
|
||||||
context.completions = [[v.class, v.value] for (v in highlight)];
|
context.completions = [[v.class, v.value] for (v in highlight)];
|
||||||
};
|
};
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -530,7 +530,6 @@ const Tabs = Module("tabs", {
|
|||||||
services.get("sessionStore").setTabState(to, tabState);
|
services.get("sessionStore").setTabState(to, tabState);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param spec can either be:
|
* @param spec can either be:
|
||||||
* - an absolute integer
|
* - an absolute integer
|
||||||
@@ -564,7 +563,7 @@ const Tabs = Module("tabs", {
|
|||||||
position = wrap ? (position % length) + length : 0;
|
position = wrap ? (position % length) + length : 0;
|
||||||
|
|
||||||
return position;
|
return position;
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
commands: function () {
|
commands: function () {
|
||||||
commands.add(["bd[elete]", "bw[ipeout]", "bun[load]", "tabc[lose]"],
|
commands.add(["bd[elete]", "bw[ipeout]", "bun[load]", "tabc[lose]"],
|
||||||
@@ -1115,7 +1114,7 @@ const Tabs = Module("tabs", {
|
|||||||
validator: Option.validateCompleter
|
validator: Option.validateCompleter
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -777,7 +777,7 @@ const Util = Module("util", {
|
|||||||
concat: function () [].concat.apply(this.__proto__, arguments),
|
concat: function () [].concat.apply(this.__proto__, arguments),
|
||||||
map: function () this.__noSuchMethod__("map", Array.slice(arguments))
|
map: function () this.__noSuchMethod__("map", Array.slice(arguments))
|
||||||
};
|
};
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
isinstance: function isinstance(obj) {
|
isinstance: function isinstance(obj) {
|
||||||
return Object.prototype.toString.call(obj) == "[object Array]";
|
return Object.prototype.toString.call(obj) == "[object Array]";
|
||||||
@@ -856,9 +856,8 @@ const Util = Module("util", {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
},
|
}
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ var storage = {
|
|||||||
for (let key in keys)
|
for (let key in keys)
|
||||||
this.load(key);
|
this.load(key);
|
||||||
return this._privateMode = Boolean(val);
|
return this._privateMode = Boolean(val);
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 sts=4 et ft=javascript:
|
// vim: set fdm=marker sw=4 sts=4 et ft=javascript:
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ const Addressbook = Module("addressbook", {
|
|||||||
|
|
||||||
commandline.open(":", "contact " + address + " " + displayName, modes.EX);
|
commandline.open(":", "contact " + address + " " + displayName, modes.EX);
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ const Config = Module("config", ConfigBase, {
|
|||||||
},
|
},
|
||||||
getter: function () MailOfflineMgr.isOnline()
|
getter: function () MailOfflineMgr.isOnline()
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -937,7 +937,7 @@ const Mail = Module("mail", {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
});*/
|
});*/
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ const Config = Module("config", ConfigBase, {
|
|||||||
catch (e) {}
|
catch (e) {}
|
||||||
|
|
||||||
return prefix + ".tmp";
|
return prefix + ".tmp";
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
}, {
|
}, {
|
||||||
commands: function () {
|
commands: function () {
|
||||||
@@ -289,7 +289,7 @@ const Config = Module("config", ConfigBase, {
|
|||||||
},
|
},
|
||||||
getter: function () !services.get("io").offline
|
getter: function () !services.get("io").offline
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ const Config = Module("config", {
|
|||||||
// FIXME: tab arg and media tab exception?
|
// FIXME: tab arg and media tab exception?
|
||||||
stop: function (tab) {
|
stop: function (tab) {
|
||||||
SBGetBrowser().mCurrentBrowser.stop();
|
SBGetBrowser().mCurrentBrowser.stop();
|
||||||
},
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|
||||||
// TODO: support 'nrformats'? -> probably not worth it --mst
|
// TODO: support 'nrformats'? -> probably not worth it --mst
|
||||||
|
|||||||
@@ -709,7 +709,7 @@ const Player = Module("player", {
|
|||||||
services: function () {
|
services: function () {
|
||||||
services.add("mediaPageManager", "@songbirdnest.com/Songbird/MediaPageManager;1", Ci.sbIMediaPageManager);
|
services.add("mediaPageManager", "@songbirdnest.com/Songbird/MediaPageManager;1", Ci.sbIMediaPageManager);
|
||||||
services.add("propertyManager","@songbirdnest.com/Songbird/Properties/PropertyManager;1", Ci.sbIPropertyManager);
|
services.add("propertyManager","@songbirdnest.com/Songbird/Properties/PropertyManager;1", Ci.sbIPropertyManager);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
Reference in New Issue
Block a user