Re: tree widget: too much recursion
Alex Russell <[email protected]> Sun, 30 Jan 2005 15:03:30 -0800
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Organization | dojotoolkit.org |
| Message-ID | <[email protected]> |
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
No idea yet, but I'm looking into it.
Regards
On Tuesday 25 January 2005 8:23 am, Christian Boulanger (Bibliograph=20
Development) wrote:
> Hello!
>
> Does anyone know why I am getting a "too much recursion" error on
> Mozilla with the following addition to the NW Tree Widget:
>
> NWTELP.getElementsByNodeName =3D function(name)
> {
>
> if(!this.children||!this.children.length) return false;
>
> for(var i=3D0;i<this.children.length;i++){
>
> var list =3D this.children[i].getElementByNodeName(name);
>
> if(this.children[i].name=3D=3Dname){
> if (list.length) list.push(this.children[i]);
> else list =3D [this.children[i]];
> }
> }
> return list ? list : false;
> }
>
> This is called on a tree with 200 nodes - not too much recursion
> alltogether.
>
> Thanks,
>
> Christian
>
> _______________________________________________
> The netWindows developers list: [email protected]
> http://netwindows.org/mailman/listinfo/devel_netwindows.org
=2D --=20
Alex Russell
[email protected] BE03 E88D EABB 2116 CC49 8259 CF78 E242 59C3 9723
[email protected] F687 1964 1EF6 453E 9BD0 5148 A15D 1D43 AB92 9A46
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFB/WfDz3jiQlnDlyMRAhmRAJ9Q1Du77P/0T4Gx8LiU1LVyoiF7ugCfWbCx
NlzOGTugJPghE0VqaQ6los0=3D
=3D4XqP
=2D----END PGP SIGNATURE-----
_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org