diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-07-17 12:28:15 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-03 13:31:08 +0100 |
commit | f0a20065e8129f9da5d48a8f29a37755de61e4bb (patch) | |
tree | 0888de2357f3d48652f6870a8ff2dd7afb6deb57 /web/cobrands/bathnes/js.js | |
parent | 43d6b2e5fe9932c05865bde239db916aad380243 (diff) |
[UK] A few IE8-compatible JS fixes.
Diffstat (limited to 'web/cobrands/bathnes/js.js')
-rw-r--r-- | web/cobrands/bathnes/js.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/bathnes/js.js b/web/cobrands/bathnes/js.js index 71077ed43..86b835d3d 100644 --- a/web/cobrands/bathnes/js.js +++ b/web/cobrands/bathnes/js.js @@ -114,14 +114,14 @@ function include_feature(f) { return f && f.attributes && f.attributes.ownername && - exclude_ownernames.indexOf(f.attributes.ownername) == -1; + OpenLayers.Util.indexOf(exclude_ownernames, f.attributes.ownername) == -1; } function banes_owns_feature(f) { return f && f.attributes && f.attributes.ownername && - banes_ownernames.indexOf(f.attributes.ownername) > -1 && + OpenLayers.Util.indexOf(banes_ownernames, f.attributes.ownername) > -1 && include_feature(f); } |