Made _getScriptLocation smarter, and added it to SingleFile.js also. This means that single file builds no longer need to contain OpenLayers.js. r=eleomine (closes #2873)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10822 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -4,7 +4,12 @@
|
||||
* full text of the license. */
|
||||
|
||||
var OpenLayers = {
|
||||
singleFile: true
|
||||
singleFile: true,
|
||||
_getScriptLocation: (function() {
|
||||
var s = document.getElementsByTagName('script');
|
||||
var l = s[s.length-1].getAttribute("src").match(/(^|(.*?\/))(OpenLayers\.js)(\?|$)/)[1];
|
||||
return (function() { return l; });
|
||||
})()
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user