From c64c2e42966f2c30c53e6c4999aa5a55d2d4f4f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Thu, 7 Jan 2010 08:26:29 +0000 Subject: [PATCH] Cache the function result if scriptLocation is ''. r=elemoine (closes #2389) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9936 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers.js b/lib/OpenLayers.js index 5cbefbb5ed..b792ede9ec 100644 --- a/lib/OpenLayers.js +++ b/lib/OpenLayers.js @@ -43,7 +43,7 @@ * {String} Path to this script */ _getScriptLocation: function () { - if(scriptLocation) { + if (scriptLocation != undefined) { return scriptLocation; } scriptLocation = "";