mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 07:44:10 +01:00
minor refactoring of Map#hasName
This commit is contained in:
@@ -51,7 +51,7 @@ liberator.Map.prototype = {
|
|||||||
|
|
||||||
hasName: function (name)
|
hasName: function (name)
|
||||||
{
|
{
|
||||||
return this.names.some(function (e) e == name);
|
return this.names.indexOf(name) >= 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
execute: function (motion, count, argument)
|
execute: function (motion, count, argument)
|
||||||
|
|||||||
Reference in New Issue
Block a user