minor refactoring of Map#hasName

This commit is contained in:
Doug Kearns committed 2008-09-18 14:26:12 +00:00
1 parent da4f0ae375
commit c0ebd0be4d
1 file changed
+1 -1
+1 -1
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)