Fwd: Re: tree widget: too much recursion
Alex Russell <[email protected]> Sun, 30 Jan 2005 15:12:06 -0800
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Organization | dojotoolkit.org |
| Message-ID | <[email protected]> |
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks Christian! =2D ---------- Forwarded Message ---------- Subject: Re: [NW-Devel] tree widget: too much recursion Date: Sunday 30 January 2005 3:09 pm =46rom: "Christian Boulanger (Bibliograph Development)"=20 <[email protected]> To: [email protected] Hi Alex, thanks for your answer - I solved the problem, it was caused somewhere else - the infinite recursion happened outside this function! Christian Alex Russell wrote: >-----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 > >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 > >- -- >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 >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.4 (Darwin) > >iD8DBQFB/WfDz3jiQlnDlyMRAhmRAJ9Q1Du77P/0T4Gx8LiU1LVyoiF7ugCfWbCx >NlzOGTugJPghE0VqaQ6los0=3D >=3D4XqP >-----END PGP SIGNATURE----- =2D -- Bibliograph: Open Source On-line Reference Management http://www.bibliograph.org Email: [email protected] =2D ------------------------------------------------------- =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/WnHz3jiQlnDlyMRAreSAJ0eZtvG5/0Ayw1t43U5ELIzYI+JfQCgmW8O rcvjyHXpZrUykLM3DljeLrE=3D =3DB9qy =2D----END PGP SIGNATURE----- _______________________________________________ The netWindows developers list: [email protected] http://netwindows.org/mailman/listinfo/devel_netwindows.org