Make the getScriptLocation function work with mobile & light builds and any other extended OpenLayers script naming convention
This commit is contained in:
1 parent
d5da1130b5
commit
405a2225e8
1 file changed
+1
-1
@@ -25,7 +25,7 @@ var OpenLayers = {
|
||||
* {String} Path to this script
|
||||
*/
|
||||
_getScriptLocation: (function() {
|
||||
var r = new RegExp("(^|(.*?\\/))(OpenLayers\.js)(\\?|$)"),
|
||||
var r = new RegExp("(^|(.*?\\/))(OpenLayers.*?\.js)(\\?|$)"),
|
||||
s = document.getElementsByTagName('script'),
|
||||
src, m, l = "";
|
||||
for(var i=0, len=s.length; i<len; i++) {
|
||||
|
||||
Reference in new issue
Block a user