1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 17:35:46 +01:00

Add liberator.assert.

This commit is contained in:
Kris Maglione
2009-11-03 02:36:48 -05:00
parent 34e9b10fb9
commit 1ce498401e
13 changed files with 154 additions and 152 deletions

View File

@@ -105,11 +105,11 @@ Map.prototype = {
args.push(argument);
let self = this;
// FIXME: Kludge.
if (this.names[0] != ".")
mappings.repeat = function () self.action.apply(self, args);
function repeat() self.action.apply(self, args);
if (this.names[0] != ".") // FIXME: Kludge.
mappings.repeat = repeat;
return this.action.apply(this, args);
return liberator.trapErrors(repeat);
}
}; //}}}