Turns out that this is a known issue in Opera since August 2006 where if the
second argument is NOT given to splice it corrupts the array; their response
is that the second argument is required, so I guess corrupting the array is
a "feature".  I've updated the bug report with a patch.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Spackman
Sent: 14 July 2008 12:55
To: 'qooxdoo Development'
Subject: Re: [qooxdoo-devel] Opera breaks TreeVirtual

It looks to me like Opera's splice is badly broken - I'm not exactly a
JavaScript expert, so perhaps someone can tell me if I'm going mad or not,
but I tried this code in Opera and FF2:

        var myarray = [1, 2, 3, 4, 5];
        var myarray2 = myarray.splice(3);
        this.debug("myarray2=" + myarray2);
        this.debug("myarray=" + myarray);

I think that myarray2 should be [4, 5] and myarray should be [1, 2, 3], but
instead I get this output:

        003484 DEBUG: qx.ui.table.columnmodel.resizebehavior.Default[134]:
myarray2=
        003484 DEBUG: qx.ui.table.columnmodel.resizebehavior.Default[134]:
myarray=1,2,4,5

Truncating past the end of the array isn't good either; with myarray now set
to [1,2,4,5], I tried:
                myarray.splice(4);
                this.debug("myarray=" + myarray);

and got:
        003484 DEBUG: qx.ui.table.columnmodel.resizebehavior.Default[134]:
myarray=1,2,4

For the same code, FF2 shows what you'd expect:
        034516 DEBUG: qx.ui.table.columnmodel.resizebehavior.Default[132]:
myarray2=4,5
        034516 DEBUG: qx.ui.table.columnmodel.resizebehavior.Default[132]:
myarray=1,2,3
        034516 DEBUG: qx.ui.table.columnmodel.resizebehavior.Default[132]:
myarray=1,2,3

John

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Spackman
Sent: 14 July 2008 12:39
To: [EMAIL PROTECTED]; 'qooxdoo Development'
Subject: Re: [qooxdoo-devel] Opera breaks TreeVirtual

Sure thing, it's there now.  I've done some tracing and I think it's an
Opera bug where Array.splice is broken :(

John

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexander
Back
Sent: 14 July 2008 10:11
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] Opera breaks TreeVirtual

Hi John,

many thanks for your report. Could you please file a bug report for this 
issue at http://bugzilla.qooxdoo.org with a short description? This will 
help us to track down the bug efficiently.

cheers,
   Alex

John Spackman wrote:
> Hi,
> 
>  
> 
> I'm using Opera 9.51 (Opera is *much* faster at loading than FF2 or 3) and
> working with TreeVirtual but I get an exception, in my code and in the
> TreeVirtual_1 in the Demo Browser:
> 
>  
> 
> JavaScript -
>
http://demo.qooxdoo.org/current/demobrowser/html/example/TreeVirtual_1.html?
> qxvariant:qx.aspects:off&qx.enableAspect:false
> 
> ... 
> 
> It stops the tree processing and no branches etc are shown.
> 
>  
> 
> John

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to