mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 07:55:48 +01:00
Move util.identity to the base module.
Most other functions of its ilk live there.
This commit is contained in:
@@ -301,14 +301,14 @@ var Marks = Module("marks", {
|
||||
"(" + Math.round(mark.offset.x * 100),
|
||||
Math.round(mark.offset.y * 100) + ")",
|
||||
(tab && "tab: " + tabs.index(tab))
|
||||
].filter(util.identity).join(", ");
|
||||
].filter(identity).join(", ");
|
||||
|
||||
if (mark.position)
|
||||
return [name, mark.location,
|
||||
"(" + Math.round(mark.position.x * 100) + "%",
|
||||
Math.round(mark.position.y * 100) + "%)",
|
||||
(tab && "tab: " + tabs.index(tab))
|
||||
].filter(util.identity).join(", ");
|
||||
].filter(identity).join(", ");
|
||||
},
|
||||
|
||||
isLocalMark: bind("test", /^[a-z`']$/),
|
||||
|
||||
Reference in New Issue
Block a user