1
0
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:
Doug Kearns
2008-09-18 14:26:12 +00:00
parent da4f0ae375
commit c0ebd0be4d

View File

@@ -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)