[OpenLayers-Users] OL code JS (ECMA?) standarts compliance and
code packing
BrainDrain
paulborodaev at gmail.com
Thu Oct 2 08:55:37 EDT 2008
Why not use eval once per load an webapp? ExtJS+OL+MS AJAX (for easy web
services calling)+ my own widgets=big size, even with gzipping. I think that
code strictness is not such a bad property.
Paul Spencer-5 wrote:
>
> 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:
>
>>
>> HI
>> Why well-known js packer (http://dean.edwards.name/packer/) 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:
>> http://www.nabble.com/OL-code-JS-%28ECMA-%29-standarts-compliance-and-code-packing-tp19778306p19778306.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://www.nabble.com/OL-code-JS-%28ECMA-%29-standarts-compliance-and-code-packing-tp19778306p19778713.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list