[OpenLayers-Trac] [OpenLayers] #3314: XYZ.js trips-up JavaScript
minify tools
OpenLayers
trac-20090302 at openlayers.org
Tue May 24 04:04:17 EDT 2011
#3314: XYZ.js trips-up JavaScript minify tools
-----------------------+----------------------------------------------------
Reporter: mgleahy | Owner:
Type: feature | Status: new
Priority: trivial | Milestone: 2.11 Release
Component: Layer.XYZ | Version: 2.11 RC1
Keywords: | State:
-----------------------+----------------------------------------------------
Lines 144 and 146 (as-of 2.11-rc1) in lib/OpenLayers/Layer/XYZ.js both
start with '/' as the first non-whitespace character. This trips up PHP
JSMin, and possibly other tools that minify/compress JavaScript.
If the slashes were moved to the end of the previous lines, or if both
lines 144 and 146 were merged with their preceeding lines, this would
solve the problem with compressing this file with 3rd-party compression
tools.
I'm not sure if this could be included in 2.11 before the final release,
but it's a trivial change.
--
Ticket URL: <http://trac.openlayers.org/ticket/3314>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list