mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 04:07:58 +01:00
Merge default.
--HG-- branch : groups
This commit is contained in:
@@ -79,9 +79,11 @@ var ProcessorStack = Class("ProcessorStack", {
|
||||
Events.kill(this.events[this.events.length - 1]);
|
||||
|
||||
if (result === Events.PASS || result === Events.ABORT) {
|
||||
dbg("REFEED: " + this.events.filter(function (e) e.getPreventDefault()).map(events.closure.toString).join(""));
|
||||
this.events.filter(function (e) e.getPreventDefault())
|
||||
.forEach(function (event, i) {
|
||||
let list = this.events.filter(function (e) e.getPreventDefault());
|
||||
if (list.length)
|
||||
events.dbg("REFEED: " + list.map(events.closure.toString).join(""));
|
||||
|
||||
list.forEach(function (event, i) {
|
||||
let elem = event.originalTarget;
|
||||
if (event.originalTarget) {
|
||||
let doc = elem.ownerDocument || elem.document || elem;
|
||||
@@ -307,6 +309,8 @@ var EventHive = Class("EventHive", Group.Hive, {
|
||||
* @instance events
|
||||
*/
|
||||
var Events = Module("events", {
|
||||
dbg: function () {},
|
||||
|
||||
init: function () {
|
||||
const self = this;
|
||||
|
||||
|
||||
@@ -1012,7 +1012,7 @@ var Timer = Class("Timer", {
|
||||
|
||||
notify: function (timer, force) {
|
||||
try {
|
||||
if (util.rehashing || typeof util === "undefined" || !force && this.doneAt == 0)
|
||||
if (loaded.util && util.rehashing || typeof util === "undefined" || !force && this.doneAt == 0)
|
||||
return;
|
||||
|
||||
this._timer.cancel();
|
||||
|
||||
@@ -36,6 +36,8 @@ var JavaScript = Module("javascript", {
|
||||
},
|
||||
}),
|
||||
|
||||
lazyInit: true,
|
||||
|
||||
newContext: function () this.modules.newContext(this.modules.userContext),
|
||||
|
||||
get completers() JavaScript.completers, // For backward compatibility
|
||||
|
||||
@@ -291,13 +291,13 @@ var Overlay = Module("Overlay", {
|
||||
});
|
||||
});
|
||||
|
||||
function frob(name) {
|
||||
// util.dump(" ======================== FROB " + name + " ======================== ");
|
||||
(deferredInit[name] || []).forEach(call);
|
||||
}
|
||||
function frob(name) { (deferredInit[name] || []).forEach(call); }
|
||||
|
||||
frob("init");
|
||||
defineModule.modules.forEach(function ({ constructor: { className } }) {
|
||||
defineModule.modules.forEach(function ({ lazyInit, constructor: { className } }) {
|
||||
if (!lazyInit)
|
||||
frob(className);
|
||||
else
|
||||
modules.__defineGetter__(className, function () {
|
||||
delete modules[className];
|
||||
frob(className);
|
||||
|
||||
@@ -483,7 +483,24 @@ var tests = {
|
||||
sanitize: {
|
||||
// Skip details for now.
|
||||
completions: [
|
||||
"",
|
||||
["", function (context) ["all",
|
||||
"cache",
|
||||
"downloads",
|
||||
"formdata",
|
||||
"offlineapps",
|
||||
"passwords",
|
||||
"sessions",
|
||||
"cookies",
|
||||
"history",
|
||||
"host",
|
||||
"sitesettings",
|
||||
"commandline",
|
||||
"messages",
|
||||
"macros",
|
||||
"marks",
|
||||
"options"
|
||||
].every(function (item) context.allItems.items.some(function ({ text }) item == text))
|
||||
],
|
||||
"-",
|
||||
"-host=",
|
||||
"-timespan="
|
||||
|
||||
Reference in New Issue
Block a user