Changeset 5921
- Timestamp:
- 01/28/08 15:27:54 (10 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers.js
r5919 r5921 44 44 if (src) { 45 45 var index = src.lastIndexOf(scriptName); 46 // set path length for src up to a query string 47 var pathLength = src.lastIndexOf('?'); 48 if (pathLength < 0) { 49 pathLength = src.length; 50 } 46 51 // is it found, at the end of the URL? 47 if ((index > -1) && (index + scriptName.length == src.length)) {48 scriptLocation = src.slice(0, -scriptName.length);52 if ((index > -1) && (index + scriptName.length == pathLength)) { 53 scriptLocation = src.slice(0, pathLength - scriptName.length); 49 54 break; 50 55 }
