mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-17 09:03:36 +01:00
Back out most of the changes accidentally merged from key-processing.
--HG-- extra : rebase_source : a00510584f7e13917f8496e15b7dd36852d98ea7
This commit is contained in:
@@ -113,17 +113,9 @@ var Map = Class("Map", {
|
||||
if (this.executing)
|
||||
util.dumpStack("Attempt to execute mapping recursively: " + args.command);
|
||||
dactyl.assert(!this.executing, "Attempt to execute mapping recursively: " + args.command);
|
||||
|
||||
try {
|
||||
this.executing = true;
|
||||
var res = repeat();
|
||||
}
|
||||
catch (e) {
|
||||
events.feedingKeys = false;
|
||||
}
|
||||
finally {
|
||||
this.executing = false;
|
||||
}
|
||||
this.executing = true;
|
||||
let res = dactyl.trapErrors(repeat);
|
||||
this.executing = false;
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -303,8 +295,6 @@ var Mappings = Module("mappings", {
|
||||
this.allHives = [this.user, this.builtin];
|
||||
},
|
||||
|
||||
repeat: Modes.boundProperty(),
|
||||
|
||||
hives: Class.memoize(function () array(this.allHives.filter(function (h) h.filter(buffer.uri)))),
|
||||
|
||||
get userHives() this.allHives.filter(function (h) h !== this.builtin, this),
|
||||
|
||||
Reference in New Issue
Block a user