1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 18:14:12 +01:00

simplify Option#hasName

This commit is contained in:
Doug Kearns
2007-11-30 09:34:31 +00:00
parent 19ad0f4d46
commit 327304a665

View File

@@ -98,12 +98,7 @@ vimperator.Option = function (names, type, extraInfo) //{{{
this.hasName = function (name)
{
for (var i = 0; i < this.names.length; i++)
{
if (this.names[i] == name)
return true;
}
return false;
return this.names.some(function (e) { return e == name; });
};
this.isValidValue = function (value)