[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapguide-users
Subject:    Re: [mapguide-users] Google Offset in MGOS 3.1.1
From:       mayoAbi_GIS <daniele.maggiolo.abitat () gmail ! com>
Date:       2019-02-28 17:09:23
Message-ID: 1551373763056-0.post () n6 ! nabble ! com
[Download RAW message or body]

Ok, I understand where the problem is!!
Inside the Fusion (compressed or no) there is the same function that was
present in the patch of your post. After removing the following part of code
from Fusion, all started working properly!!

Part of code removed from fusion:

Array.prototype.find = function(searchStr) {
  var returnArray = null;
  for (i=0; i<this.length; i++) {
    if (typeof(searchStr) == 'function') {
      if (searchStr.test(this[i])) {
        if (!returnArray) { returnArray = [] }
        returnArray.push(i);
      }
    } else {
      if (this[i]===searchStr) {
        if (!returnArray) { returnArray = [] }
        returnArray.push(i);
      }
    }
  }
  return returnArray;
};

Or in the Fusion compressed version:

Array.prototype.find=function(a){var
b=null;for(i=0;i<this.length;i++)"function"==typeof
a?a.test(this[i])&&(b||(b=[]),b.push(i)):this[i]===a&&(b||(b=[]),b.push(i));return
b};

I don't know exactly what that function do. But it is the cause of our
problems!!

Bye.





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic