[OpenLayers-Trac] Re: [OpenLayers] #3499: OpenLayers Custom Build _getScriptLocation not working properly

OpenLayers trac-20090302 at openlayers.org
Tue Sep 13 08:07:46 EDT 2011


#3499: OpenLayers Custom Build _getScriptLocation not working properly
----------------------------------------------------------------------+-----
 Reporter:  ckreuzbe                                                  |       Owner:              
     Type:  bug                                                       |      Status:  new         
 Priority:  minor                                                     |   Milestone:  2.12 Release
Component:  general                                                   |     Version:  2.10        
 Keywords:  images getScriptLocation custom build filename different  |       State:  Review      
----------------------------------------------------------------------+-----
Changes (by ckreuzbe):

  * state:  => Review


Comment:

 I found that this regexp will work for me:


 {{{
     _getScriptLocation: (function() {
         var r = new RegExp("(^|(.*?\\/))(OpenLayers)([\-0-9a-
 zA-Z]*)(\\.js)(\\?|$)"),
 }}}

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


More information about the Trac mailing list