Changes between Initial Version and Version 2 of Ticket #13343


Ignore:
Timestamp:
Jun 29, 2011, 11:00:40 PM (10 years ago)
Author:
bill
Comment:

You really should be using getChildren() rather than getDescendants(), but still I could make a change to getDescendants() like in [23319]. Note though that would just make getDescendants() filter out the widgets from another dojo instance, not resolve them like your workaround does.

The thing is though that getDescendants() is deprecated, so I'm reluctant to change it. I'm going to close this as wontfix for now with the suggestion to use getChildren() instead of getDescendants(). (getChildren() is available for all widgets starting in 1.6, or maybe 1.5). If there's some reason you can't use getChildren() let me know; if enough people need getDescendants() I'll un-deprecate it.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13343

    • Property Owner set to bill
    • Property Status changed from new to closed
    • Property Component changed from General to Dijit
    • Property Resolution changed from to wontfix
  • Ticket #13343 – Description

    initial v2  
    1 Similar to [http://bugs.dojotoolkit.org/ticket/11910 this bug], I have run into an issue where one instance of dojo tries to find widgets from a different instance of dojo. This results in the returned array containing several elements which are undefined, which causes issues in code that assumes all of the elements are defined. An example is in dijit.dialog, or dijit.form which attempt to find all of its descendants for form verification / management purposes.
     1Similar to #11910, I have run into an issue where one instance of dojo tries to find widgets from a different instance of dojo. This results in the returned array containing several elements which are undefined, which causes issues in code that assumes all of the elements are defined. An example is in dijit.dialog, or dijit.form which attempt to find all of its descendants for form verification / management purposes.
    22
    33Since I am using two instances of dojo (though they are the same version), I wrote a workaround: