View Full Version : jsonView selectionchange is broken with inconsistencies

13 Jul 2007, 5:11 PM
shift-click for multi-selects is very broken.

jsonView.on('selectionchange', function(v, nodes) { console.log(nodes) }

just poke around with 5 items or so and see how inconsistent the returned nodes are. first and last node, old nodes that were just unselected, etc.

ext 1.1rc1

14 Jul 2007, 8:04 AM
It's firing the changes as they occur. It doesn't just "drop" changes without notification.

If you dn't want to receive all the in between notifications, just buffer the event and get the last one.

jsonView.on('selectionchange', function(v, nodes) { console.log(nodes) }, null, {buffer:50});

14 Jul 2007, 10:57 AM
so i should be receiving multiple selectionchange events with shift-click selections? this doesnt seem to be the case. is this something on my end?

14 Jul 2007, 5:16 PM
Did you try the code I posted?

15 Jul 2007, 11:07 PM
yes i did (but thank you for trying). same problem, console.log shows behavior such as only reporting the node that was clicked directly and none of the other affected nodes that were secondarily selected.