Yes, naming the function initialize will preserve the current semantics.

On 2006-08-21, at 19:07 EDT, Philip Romanik wrote:

> Hi Tucker,
>
> This is what view/LzScript.lzs used to look like:
>
> LzScript = Class(
>     "LzScript" ,
>     LzNode ,
>     function ( parent, args ){
>         args.script();
>     }
> );
>
> When I converted it, I named the function construct(), and not  
> initialize(). I think I've introduced a bug here. Can you verify?
>
>
> This is what LzScript.lzs currently looks like:
>
> class LzScript extends LzNode {
>
> function construct ( parent, args ){
>     super.construct (parent, args);
>     args.script();
> }
>
> }; // End of LzScript
>
>
> Shouldn't it be this?
>
> class LzScript extends LzNode {
>
> function initialize ( parent, args ) {
>     super.initialize (parent, args);
>     args.script();
> }
>
> }; // End of LzScript
>
>
> Thanks!
>
> Phil
>
>
>

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

Reply via email to