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