[OpenLayers-Trac] Re: [OpenLayers] #2873: Build: Compressed code "OpenLayers.js" can be reduced by 9k

OpenLayers trac-20090302 at openlayers.org
Thu Oct 14 04:27:56 EDT 2010


#2873: Build: Compressed code "OpenLayers.js" can be reduced by 9k
-----------------------+----------------------------------------------------
  Reporter:  jorix     |       Owner:  jorix       
      Type:  feature   |      Status:  closed      
  Priority:  minor     |   Milestone:  2.11 Release
 Component:  general   |     Version:  2.10        
Resolution:  fixed     |    Keywords:              
     State:  Complete  |  
-----------------------+----------------------------------------------------

Comment(by ahocevar):

 Replying to [comment:22 jorix]:
 > My first solution was to copy _getScriptLocation in singleFile.js, once
 prepared, I dismissed it because I thought it would be rejected, ups!
 :-)[[BR]]
 erilem was indeed not too happy with this solution.
 > I worked with some premises that can serve:
 >  * Put  bold comments in both files warning to future developers of
 duplicity (missing).
 done in r10831
 >  * Can copy and paste the code of _getScriptLocation function to
 singleFile.js if changes are made (now are different)
 except for the regular expression, yes. We can do that in 3.0 when we stop
 supporting build profiles that include OpenLayers.js - I added comments
 about it.
 >  * Put the same "@requires" in the two files (in "singleFile.js"
 missing)
 Should be handled elsewhere.
 > What to do with "VERSION_NUMBER"? Now I've done an SVN Update in my
 local copy and and "OpenLayers.js" says 10822 and "SingleFile.js" says
 10823!
 VERSION_NUMBER is only relevant for releases. It is set manually by the
 release manager. I'll update the release procedure wiki to explain this
 step.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2873#comment:28>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list