[fusion-commits] r3032 - trunk/layers/MapGuide
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Apr 6 23:20:44 PDT 2018
Author: jng
Date: 2018-04-06 23:20:44 -0700 (Fri, 06 Apr 2018)
New Revision: 3032
Modified:
trunk/layers/MapGuide/MapGuide.js
Log:
Check for existence of searchStr.test
Fixes #662
Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js 2018-03-08 15:00:13 UTC (rev 3031)
+++ trunk/layers/MapGuide/MapGuide.js 2018-04-07 06:20:44 UTC (rev 3032)
@@ -2654,7 +2654,7 @@
Array.prototype.find = function(searchStr) {
var returnArray = null;
for (i=0; i<this.length; i++) {
- if (typeof(searchStr) == 'function') {
+ if (typeof(searchStr) == 'function' && typeof(searchStr.test) == 'function') {
if (searchStr.test(this[i])) {
if (!returnArray) { returnArray = [] }
returnArray.push(i);
More information about the fusion-commits
mailing list