logo       

Re: documenting widgets was: release 0.4.1 bugtriage: msg#00491

web.dojo.devel

Subject: Re: documenting widgets was: release 0.4.1 bugtriage

Actually, as I'm re-reading what you're asking for, I can see you've missed the problem completely.  Sigh.

The issue isn't base class and subclass definitions.  The issue is instance definitions.  If I define a property on a prototype, all *instances* of that constructor will share the property.  It has nothing to do with inheritance.  The inheritance chain here isn't the issue at all.

trt

On 10/29/06, Bill Keese <bill@xxxxxxxxxxxxxxx> wrote:
Tom Trenka wrote:

> Should I go through the entire widget system and try to document for you
> every single type of bug that might be there because we are sharing
> properties across objects?

No, I just want you to write some simple _javascript_ code, showing two
defineWidget() calls (a base class and a subclass), each defining a
property in the prototype (w/the same name), and then some code that
uses the subwidget, and gets a different result than expected.  Don't
write any english text, other than "expected result" and "actual result".

If this technique is broken then you should be able to give a simple
self-contained example.
_______________________________________________
dojo-contributors mailing list
dojo-contributors@xxxxxxxxxxxxxxx
http://dojotoolkit.org/mailman/listinfo/dojo-contributors

_______________________________________________
dojo-contributors mailing list
dojo-contributors@xxxxxxxxxxxxxxx
http://dojotoolkit.org/mailman/listinfo/dojo-contributors
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise