<div dir="ltr"><div>Something is wrong with the following lines:</div>
<div> </div>
<div>for(var i=0;i<scripts.length;++i){<br>if(scripts[i].src.indexOf("firebug.js")!=-1){<br>OpenLayers.Util.extend(OpenLayers.Console,console);<br>break;<br>}}}})();</div>
<div> </div>
<div>If I remove them everything runs fine.</div>
<div> </div>
<div>Linda<br><br></div>
<div class="gmail_quote">On Thu, Aug 28, 2008 at 11:29 AM, Eric Lemoine <span dir="ltr"><<a href="mailto:eric.c2c@gmail.com">eric.c2c@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi. This is really weird. Open OpenLayers.js in an editor and search<br>for "OpenLayers.Control = OpenLayers.Class", you should get one<br>
occurence of this, otherwise your build isn't valid, for some reason.<br>Eric<br><br>2008/8/28, Linda Rawson <<a href="mailto:linda.rawson@gmail.com">linda.rawson@gmail.com</a>>:<br>
<div>
<div></div>
<div class="Wj3C7c">> I have been on another project so I am just getting around to compressing my<br>> version of openlayers. So I thought I would try the stable version first<br>> before adding my stuff into it.<br>
><br>> Here are my steps:<br>><br>> 1. Grabbed latest stable build.<br>> 2. Switched to build directory.<br>> 3. python ./build.py full.cfg<br>> 4. Copied Openlayers.js (466 KB) to .. (1 directory above lib, same level<br>
> as build, img, theme, tools)<br>> 5. Moved SpericalMercator.html example to this directory also.<br>> 6. Changed to point to<br>><br>> <script src="OpenLayers.js"></script><br>> 7. Run and get the following error:<br>
> Microsoft JScript runtime error: 'OpenLayers.Control' is null or not an<br>> object.<br>><br>> I also get this when I use what I used in 2.5 to compress and it does not<br>> work in 2.6.<br>><br>
> Does anybody have any idea what to do with this error? I would really like<br>> to compress Openlayers.<br>><br>> Thanks!<br>> --<br>> Linda Rawson<br>><br></div></div></blockquote></div><br><br clear="all">
<br>-- <br>Linda Rawson<br></div>