Hi, this is for Martin:

I am struggling to understand the "changeBubble" event fired by databinding
operations, the documentaion is a bit sparse on the subject (or I didn't
find the right page). In particular, the "name" property contains values
that confuse me. 

For example, a simple model looks like this: 

[{ foo : "one" }, { foo : "two" }, { foo : "three" }]

and is marshaled into a model using qx.data.marshal.Json.createModel()

Now when I do

model.getItem(1).setFoo("ZWEI");

I expect the model to look (natified) like this:

[{ foo : "one" }, { foo : "ZWEI" }, { foo : "three" }]

but the "changeBubble" event data is { value: "ZWEI", name: "2.name" ...}

Why "2.name" ? Is 0 the "before" position and 1 the first element?

Similarly, for splice operations on a qx.data.Array, the "name" property of
the changeBubble event data is either a number or a sequence (0, "1-2",
etc.). I assume that 1 also refers to the first element and 0 is an
insertion point. Or do I understand the data that I am seeing in a wrong
way?

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/databinding-changeBubble-event-details-tp7540785.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

Reply via email to