1 Attachment(s)
[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'
});