Skip to content
This repository was archived by the owner on Sep 18, 2019. It is now read-only.

Commit 23e2d25

Browse files
committed
avoid indexOf for IE's sake
1 parent 0cff49d commit 23e2d25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/jquery.findyourrep.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ window.FYR.bootstrap = function($, window, undefined){
238238
// sort results to list upper house first
239239
iterable = iterable.sort(function(a, b){
240240
if (a.chamber == b.chamber) { return 0; }
241-
else if (uppers.indexOf(a.chamber) != '-1') { return -1; }
241+
else if ($.inArray(a.chamber, uppers) != '-1') { return -1; }
242242
else { return 1; }
243243
});
244244
// iterate over api's results and render a single result template into

0 commit comments

Comments
 (0)