I don't think it's a bug in qx.data.Array because this works: var data = new qx.data.Array([1,2,3,4,5]); var firstItem = data.shift();
Looks like the bug is in the generated model. On Sat, May 1, 2010 at 5:41 PM, panyasan <[email protected]> wrote: > > Hi, > > shouldn't this work: > > var data = { > "foo" : "foo", > "bar" : [1,2,3,4,5] > }; > var model = qx.data.marshal.Json.createModel( data, true ); > var bar = model.getBar(); > var firstItem = bar.shift(); > > I expect the result to be 1, but if you try the code in the playground, you > get "Cannot read property 'indexOf' of undefined". Am I doing something > wrong here, or is this a bug? > > C. > > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/Bug-in-qx-data-Array-tp4991264p4991264.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >
------------------------------------------------------------------------------
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
