Threaded View
-
17 Nov 2012 1:48 PM #1
[4.1.3] ComponentQuery doesn't consider numeric zero as a value
[4.1.3] ComponentQuery doesn't consider numeric zero as a value
"[foo]" should find all 3 buttons in this example, but it only finds 2.
Code:var panel = Ext.create('Ext.Panel', { x: 10, y: 10, width: 250, title: "Panel", renderTo: document.body, items: [{ xtype: 'button', text: 'I am a button', foo: 0 }, { xtype: 'button', text: 'I am a button', foo: 1 }, { xtype: 'button', text: 'I am a button', foo: 2 }] }); panel.add({ xtype: 'displayfield', value: 'Found ' + panel.query('[foo]').length + ' buttons' });
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-7776
in
4.2.0.


Reply With Quote