1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 10:15:45 +01:00

Rename {Command,Map)#isUser{Command,Map} => #user.

This commit is contained in:
Doug Kearns
2009-07-07 22:08:51 +10:00
parent 4df207e6e5
commit 5e2b5b014b
2 changed files with 11 additions and 11 deletions

View File

@@ -91,7 +91,7 @@ function Map(modes, keys, description, action, extraInfo) //{{{
* mappings may be created by plugins, or directly by users. Users and
* plugin authors should create only user mappings.
*/
this.isUserMap = extraInfo.isUserMap || false;
this.user = extraInfo.user || false;
}
Map.prototype = {
@@ -156,7 +156,7 @@ function Mappings() //{{{
function addMap(map)
{
let where = map.isUserMap ? user : main;
let where = map.user ? user : main;
map.modes.forEach(function (mode) {
if (!(mode in where))
where[mode] = [];
@@ -401,7 +401,7 @@ function Mappings() //{{{
{
keys = keys.map(expandLeader);
extra = extra || {};
extra.isUserMap = true;
extra.user = true;
let map = new Map(modes, keys, description || "User defined mapping", action, extra);
// remove all old mappings to this key sequence