[thelist] Javascript array weirdness

Jason Handby jason.handby at corestar.co.uk
Wed Aug 26 04:02:41 CDT 2009


> > > I tried inserting a hard value of this.request[1] = 'Test'; and
got
> > the
> > > output as [undefined, 'Test']... so I tried this.request['test'] =
> > 'Test';
> > > and got [ ]
> > >
> > > So I tried replacing the this.request array as a locally defined
> > array
> > > called request... Still blank


Try declaring a local Object, rather than a local Array, and test with
that. It looks as though your Array iterator implementation could be
intentionally ignoring properties with non-integer keys...?


Jason




More information about the thelist mailing list