<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I use packer as well. The main problem is that packer put everything on
one line.<br>
This causes problems because of missing semicolons (function endings I
think?).<br>
For some reason, the regular packing tools for OpenLayers does not
combine the faulty lines.<br>
The easiest way to find these problems is to take the OpenLayers.js
file and remove all linefeeds.<br>
The problem is then tracking it back to the file that created the
problem.<br>
<br>
I would give you my patch, but it is for OL 2.5, so not much use.<br>
When I upgrade to 2.7, I will try to make a single patch for the
missing semicolons, and submit it.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Christopher Schmidt skrev:
<blockquote cite="mid:20081002132818.GA23657@metacarta.com" type="cite">
<pre wrap="">On Thu, Oct 02, 2008 at 05:55:37AM -0700, BrainDrain wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I think that code strictness is not such a bad property.
</pre>
</blockquote>
<pre wrap=""><!---->
Are you saying that the OL code fails JSLint? It doesn't seem to for me
at the moment. If that's the case, please offer at least data about how
to reproduce it or what error you're getting, and preferably with a
patch.
</pre>
<blockquote type="cite">
<pre wrap="">Paul Spencer-5 wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I periodically run jslint on the openlayers code base and commit
changes to fix things like missing semi-colons. I haven't had any
problems using jsmin or the YUI compressor. I haven't tried Packer
for a while, I have a fundamental dislike of the approach he takes
(using eval() to load the code) but that is mostly a personal opinion.
Cheers
Paul
On 2-Oct-08, at 8:31 AM, BrainDrain wrote:
</pre>
<blockquote type="cite">
<pre wrap="">HI
Why well-known js packer (<a class="moz-txt-link-freetext" href="http://dean.edwards.name/packer/">http://dean.edwards.name/packer/</a>) breaks
OL code?
It becomes unworking.
I've tried online and c# versions of this packer (and some others from
codeproject). Results - the same.
It turned out, that not all of my code is compatible with this
packer and I
tried to test it with JSLint.
After some revision with the help of JSLint I achieved a success
(for my
code).
But what about OL? base62 encoding has good compression ratio -
almost 50%
Paul
--
View this message in context:
<a class="moz-txt-link-freetext" href="http://www.nabble.com/OL-code-JS-%28ECMA-%29-standarts-compliance-and-code-packing-tp19778306p19778306.html">http://www.nabble.com/OL-code-JS-%28ECMA-%29-standarts-compliance-and-code-packing-tp19778306p19778306.html</a>
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap="">--
View this message in context: <a class="moz-txt-link-freetext" href="http://www.nabble.com/OL-code-JS-%28ECMA-%29-standarts-compliance-and-code-packing-tp19778306p19778713.html">http://www.nabble.com/OL-code-JS-%28ECMA-%29-standarts-compliance-and-code-packing-tp19778306p19778713.html</a>
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>