Results 1 to 3 of 3

Thread: [FIXED][3.x] Menu initalConfig

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996

    Default [FIXED][3.x] Menu initalConfig

    initialConfig

    Code:
        initComponent: function(){
            if(Ext.isArray(this.initalConfig)){
                Ext.apply(this, {items:this.initalConfig});
            }

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    IMHO the code should be moved to the constructor anyway:
    Code:
    Ext.menu.Menu = Ext.extend(Ext.Container, {
    	...
    	constructor: function(config){
    		if(Ext.isArray(config)){
    			config = {items:config};
    		}
    		Ext.menu.Menu.superclass.constructor.call(this, config);
    	},
    	initComponent: function(){
    		this.addEvents(
    			'beforeshow',
    			'beforehide',
    			'show',
    			'hide',
    			'click',
    			'mouseover',
    			'mouseout',
    			'itemclick'
    		);
    		Ext.menu.MenuMgr.register(this);
    		Ext.menu.Menu.superclass.initComponent.call(this);
    		if(this.autoLayout){
    			this.on({
    				add: this.doLayout,
    				remove: this.doLayout,
    				scope: this
    			});
    		}
    	}
    	...
    });

  3. #3
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    Fixed in SVN.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

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