From c0ebd0be4dc43630ec4230c856bc7bb7e3023876 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 18 Sep 2008 14:26:12 +0000 Subject: [PATCH] minor refactoring of Map#hasName --- content/mappings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/mappings.js b/content/mappings.js index 3ef16a19..ea84fbc7 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -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)