Threaded View

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7776 in 4.2.0.179.
  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2007
    Posts
    98
    Vote Rating
    4
    lagnat is on a distinguished road

      0  

    Default [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'
        });
    Attached Images

Thread Participants: 1