Hey,

Sure, they should behave the same. Don't know how that item slipped into the 
old array. Would you be so kind to open a bug report for that?

Also the first thing seems to be a bug to me. The name should contain "1.name" 
because thats usually the index of the array. And I'm not quite sure if there 
should also be brackets but I would check that out during the bug fix.

When it comes to the splice, its getting a bit complicated because you can have 
both, adding and removing at once. There is a bug which already covers that but 
can't remember the number right now.

Regards,
Martin

Am 08.05.2012 um 23:54 schrieb panyasan:

> I wonder if this is a bug: 
> 
> qx.data.Array::unshift() contains this code:
> 
>        // fire change bubbles event
>        this.fireDataEvent("changeBubble", {
>          value: [this.__array[0]],
>          name: "0",
>          old: [this.__array[1]],
>          item: this
>        });
> 
> why does the "old" property contain the second array item? The corresponding
> push() method does this: 
> 
>        // fire change bubbles event
>        this.fireDataEvent("changeBubble", {
>          value: [arguments[i]],
>          name: (this.length - 1) + "",
>          old: [],
>          item: this
>        });
> 
> "old" contains an empty array. This makes much more sense, since push(),
> just like unshift() doesn't delete anything. 
> 
> This confuses my remote databinding mechanism. Shouldn't both methods behave
> the same?
> 
> Thanks. 
> 
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/databinding-changeBubble-event-details-tp7540785p7540813.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to