On 2006-09-21, at 19:54 EDT, Benjamin Shine wrote:

>> 5) You'll want to look at ScriptCompiler.writeObject.  Basically,  
>> this will turn a Java Map or List into (a string representation  
>> of) a Javascript Object or Array.  This will save you a lot of  
>> string manipulation, let you accumulate your selectors and  
>> properties more naturally in Java and simplify your code.
>
> Oh my. Given that I've already done the string manipulation, would  
> you recommend changing this code to use ScriptCompiler.writeObject,  
> or should I just keep it in mind for next time?

How about filing this as an improvement.  It seems that the code  
would be simplified greatly.  For instance, I think that writing the  
properties would be 1 line.



_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to