Skip to content

Commit

Permalink
Simpler L.Util.indexOf
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed Jul 9, 2015
1 parent c173edb commit 720b02e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
Expand Down

0 comments on commit 720b02e

Please sign in to comment.