Compile again [Enter | q + Enter]:
org.openlaszlo.sc.CompilerException: data/LzLoader.as:15:5: org.openlaszlo.sc.UnimplementedError: unimplemented: calling
super.initialize from null. The method names must have the same capitalization.
Compilation aborted.
so I put it back for now.
On 6/12/06,
P T Withington <[EMAIL PROTECTED]> wrote:
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]
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
_______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
