Results 1 to 2 of 2

Thread: [4.0.7 & 4.1 B1] Comma separated selector breaks in controller.control()

    You found a bug! We've classified it as EXTJS-5102 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha - Documentation Team
    Join Date
    Mar 2009
    Boise, ID
    Vote Rating

    Default [4.0.7 & 4.1 B1] Comma separated selector breaks in controller.control()

    REQUIRED INFORMATIONExt version tested:
    • Ext 4.1 rev B1
    • Ext 4.0.7
    Browser versions tested against:
    • FF9.0.1 (firebug 1.9.0)
    DOCTYPE tested against:
    • strict
    • whatever it is when nothing is set
    • Using comma separated selectors in Ext.ComponentQuery.query() works fine, but if you use the same selectors in a contoller's control method it crashes the browser.
    Steps to reproduce the problem:
    • Create
    • Link to a Controller with a control method monitoring a render event on 'panel, button' and console.log() the component found
    • Create a viewport with a panel and a button.
    The result that was expected:
    • Panel is console.logged
    • Button is console.logged
    The result that occurs instead:
    • browser hangs
    Test Case:
    // appExt.application({
        name: 'Pandora',
        autoCreateViewport: true,
        controllers: ['Main']
    	, launch: function () {
    		console.log(Ext.ComponentQuery.query('panel, button'))
    // controllerExt.define('Pandora.controller.Main', {
        extend: '',
        init: function() {
                'button, panel': {
                    afterrender: this.onRender
    	, onRender: function (cmp) {
    		console.log( + ' was rendered')
    // viewportExt.define('Pandora.view.Viewport', {
        extend: 'Ext.container.Viewport',
        layout: 'border',
        initComponent: function() {
            this.items = {
                xtype: 'panel'
    			, region: 'center'
    			, title: 'Panel'
    			, dockedItems: [{
    				xtype: 'toolbar'
    				, dock: 'top'
    				, items: [{
    					xtype: 'button'
    					, text: 'My Button'
    HELPFUL INFORMATIONScreenshot or Video:
    • attached
    See this URL for live test case: http://Debugging already done:
    • none
    Possible fix:
    • not provided
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • WinXP Pro

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Thank you for the report.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts