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:
+1
-1
@@ -43,7 +43,7 @@
|
|||||||
* {String} Path to this script
|
* {String} Path to this script
|
||||||
*/
|
*/
|
||||||
_getScriptLocation: function () {
|
_getScriptLocation: function () {
|
||||||
if(scriptLocation) {
|
if (scriptLocation != undefined) {
|
||||||
return scriptLocation;
|
return scriptLocation;
|
||||||
}
|
}
|
||||||
scriptLocation = "";
|
scriptLocation = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user