Google Maps and Richfaces 3.3.3 (prototype.js 1.6.0.3) possible incompatibility

前端 未结 4 1708
有刺的猬
有刺的猬 2020-12-04 02:30

I have a web application based on RichFaces 3.3.3 that uses Google Maps (maps-api v3), that was working fine until recently.

Lately is failing to draw the map\'s use

4条回答
  •  误落风尘
    2020-12-04 02:53

    This function at line number 629ish in prototype.js is causing the exception. Simply add try catch blocks as shown below. It works with any Google Maps API.

    collect: function(iterator, context) {
      iterator = iterator ? iterator.bind(context) : Prototype.K;
      var results = [];
      try {
        this.each(function(value, index) {
          results.push(iterator(value, index));
        });
      } catch (err) {}
      return results;
    }

提交回复
热议问题