OpenLayers OpenLayers

Changeset 359

Show
Ignore:
Timestamp:
05/25/06 08:26:53 (2 years ago)
Author:
follower
Message:

Merged r[280]:[358] from source:/sandbox/follower/b-singlefile/ (Enable building of Single File Library version of OpenLayers library).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers.js

    r349 r359  
    3030} 
    3131 
    32 try{new OpenLayers.Map();} 
    33 catch(e){ 
     32/* 
     33  `_OPENLAYERS_SFL_` is a flag indicating this file is being included 
     34  in a Single File Library build of the OpenLayers Library. 
     35 
     36  When we are *not* part of a SFL build we dynamically include the 
     37  OpenLayers library code. 
     38 
     39  When we *are* part of a SFL build we do not dynamically include the  
     40  OpenLayers library code as it will be appended at the end of this file. 
     41*/ 
     42if (typeof(_OPENLAYERS_SFL_) == "undefined") { 
     43    /* 
     44      The original code appeared to use a try/catch block 
     45      to avoid polluting the global namespace, 
     46      we now use a anonymous function to achieve the same result. 
     47     */ 
     48    (function() { 
    3449    var jsfiles=new Array( 
    3550        "Prototype.js",  
     
    7994    } 
    8095    document.write(allScriptTags); 
    81 }; 
     96    })(); 
     97