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