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
This commit is contained in:
Frédéric Junod
2010-01-07 08:26:29 +00:00
parent 871a790f3f
commit c64c2e4296

View File

@@ -43,7 +43,7 @@
* {String} Path to this script
*/
_getScriptLocation: function () {
if(scriptLocation) {
if (scriptLocation != undefined) {
return scriptLocation;
}
scriptLocation = "";