mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 16:04:12 +01:00
Move util.identity to the base module.
Most other functions of its ilk live there.
This commit is contained in:
@@ -196,7 +196,7 @@ var MapHive = Class("MapHive", Contexts.Hive, {
|
||||
*/
|
||||
add: function (modes, keys, description, action, extra={}) {
|
||||
modes = Array.concat(modes);
|
||||
if (!modes.every(util.identity))
|
||||
if (!modes.every(identity))
|
||||
throw TypeError(/*L*/"Invalid modes: " + modes);
|
||||
|
||||
let map = Map(modes, keys, description, action, extra);
|
||||
|
||||
Reference in New Issue
Block a user