There is absolutely no difference. The whole point of these two lines is
creating a true new DynLAyer instance and execute its initialization code for
each instantiated widget. Since we have prototyped inheritance, if that was not
done we would have all instances of widget sharing properties.

En/Na Colin Thompson ha escrit:

> Just a simple question,
>
> I've noticed that the tutorials by Pascal use this format:
>
>         function widget(id,x,y,w,h) {
>                 this.superClass=DynLayer
>                 this.superClass(id,x,y,w,h)
>
> yet all the 'core' widgets use this.DynLayer. What is the difference between
> the 2? is there a consequence of using one over the other?
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to