diff --git a/src/ol/reproj/triangulation.js b/src/ol/reproj/triangulation.js index b69006fb01..bc4cbe1571 100644 --- a/src/ol/reproj/triangulation.js +++ b/src/ol/reproj/triangulation.js @@ -54,7 +54,10 @@ ol.reproj.Triangulation = function(sourceProj, targetProj, targetExtent, */ this.transformInv_ = function(c) { var key = c[0] + '/' + c[1]; - return transformInvCache[key] || (transformInvCache[key] = transformInv(c)); + if (!transformInvCache[key]) { + transformInvCache[key] = transformInv(c); + } + return transformInvCache[key]; }; /**