[OpenLayers-Commits] r12449 -
sandbox/camptocamp/ifremer/openlayers/lib
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Jan 11 11:14:26 EST 2012
Author: fvanderbiest
Date: 2012-01-11 08:14:25 -0800 (Wed, 11 Jan 2012)
New Revision: 12449
Modified:
sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers.js
Log:
[camptocamp/ifremer] fixed js files loading
Modified: sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers.js
===================================================================
--- sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers.js 2011-12-21 20:49:34 UTC (rev 12448)
+++ sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers.js 2012-01-11 16:14:25 UTC (rev 12449)
@@ -313,28 +313,13 @@
"OpenLayers/Lang/en.js"
); // etc.
- var agent = navigator.userAgent;
- var docWrite = (agent.match("MSIE") || agent.match("Safari"));
- if(docWrite) {
- var allScriptTags = new Array(jsfiles.length);
- }
+ var allScriptTags = new Array(jsfiles.length);
var host = OpenLayers._getScriptLocation() + "lib/";
for (var i=0, len=jsfiles.length; i<len; i++) {
- if (docWrite) {
allScriptTags[i] = "<script src='" + host + jsfiles[i] +
"'></script>";
- } else {
- var s = document.createElement("script");
- s.src = host + jsfiles[i];
- var h = document.getElementsByTagName("head").length ?
- document.getElementsByTagName("head")[0] :
- document.body;
- h.appendChild(s);
- }
}
- if (docWrite) {
- document.write(allScriptTags.join(""));
- }
+ document.write(allScriptTags.join(""));
}
})();
More information about the Commits
mailing list