From 720b02e876cab098eaa6bf5b6859d9a66b74b023 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 9 Jul 2015 14:06:33 +0200 Subject: [PATCH] Simpler L.Util.indexOf --- src/core/Util.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/Util.js b/src/core/Util.js index 1b118125b80..d7c681c5c33 100644 --- a/src/core/Util.js +++ b/src/core/Util.js @@ -148,9 +148,6 @@ L.Util = { }, indexOf: function (array, el) { - if (array.indexOf) { - return array.indexOf(el); - } for (var i = 0; i < array.length; i++) { if (array[i] === el) { return i; } }