Ticket #2275 (new bug)
minimize.py tool produces incorrect OpenLayers.js file
| Reported by: | bochecha | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.13 Release |
| Component: | general | Version: | 2.8 |
| Keywords: | Cc: | ||
| State: |
Description
When compressing OpenLayers with the minimize.py tool, the produced OpenLayers.js file is incorrect.
First error reported by Firebug is:
missing : after property id OpenLayers.Control.prototype.initialize.apply(this, arguments); OpenLayers.js (line 4810)
(others are « OpenLayers is not defined », which most certainly come from the previous one)
I diffed the files produced by mergejs.py and then minimize.py.
The interesting part is there: http://fpaste.org/XeC5/
As you can see, all multi-line comments and line feeds were removed, making all properties on the same line. But the line also start by the inline comment, which means all properties are commented.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

