openlayers/openlayers — pull request #288 by mpriour (2012-03-06 02:09:19+00:00)
Title: Make the getScriptLocation function work with mobile & light builds

The current _getScriptLocation function is very strict and will only correctly find the script location when the OpenLayers script is named "OpenLayers.js". This seems highly limiting, especially given that with https://github.com/openlayers/openlayers/commit/c8f0dfd728c6277b52060071338711927b1182e8 :
OpenLayers.debug.js
OpenLayers.light.js
OpenLayers.mobile.js
OpenLayers.light.debug.js and
OpenLayers.mobile.debug.js

will be built and packaged during the release process and the post commit dev directory update builds.

When _getScriptLocation returns the correct script location, then the default CSS required for OpenLayers UI controls is also included, as is seen in the examples. Without it the CSS file must be specifically included.