A class with 'no superclass' will still have Instance as its  
superclass, and right now Instance.initialize is used for scaffolding.

In general, it is always good practice to call your super initialize  
method.

You should be able to delete the pragma as the new class system  
doesn't have the restriction that you can only call super on the  
method you are overriding.

On 2006-06-12, at 12:59 EDT, Henry Minsky wrote:

> The code declaring the LzLoader class in legals starts like this
>
>
> LzLoader = Class("LzLoader", null, function ( owner , args ){
>    #pragma 'methodName=initialize'
>    super.initialize(owner, args);
>
> Is it necessary  for the initialize method to call super.initialize  
> for a
> class with no superclass?
>
>
>
>
> -- 
> Henry Minsky
> Software Architect
> [EMAIL PROTECTED]

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

Reply via email to