Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User conorarmstrong's Avatar
    Join Date
    Mar 2008
    Location
    Northern Ireland
    Posts
    224
    Vote Rating
    2
    conorarmstrong is on a distinguished road

      0  

    Default [DUP][CLOSED](Beta1) Extending TreePanel error [fix attached]

    [DUP][CLOSED](Beta1) Extending TreePanel error [fix attached]


    Had a bit of difficulty extending a tree panel as follows:

    Code:
      Ext.require([
        'Ext.tree.*',
        'Ext.data.*'
      ]);
      
      Ext.define('App.SidebarTree', {
        extend: 'Ext.tree.TreePanel',
        initComponent: function() {
      
          var config = { 
            border: false,
            animate: true,
            useArrows: true,
            autoScroll: true,
            height: 400,
            containerScroll: true,
            rootVisible: false,
          }   
         
          this.buildStore(config);
       
          Ext.apply(this, Ext.apply(this.initialConfig, config));
      
          this.callParent(arguments);
          
        },  
        buildStore: function(config) {
          config.store=new Ext.data.TreeStore({
            proxy: {
              type: 'ajax',
              url: 'menu/loadTree'
            },  
            root: {
              nodeType      : 'async',
              expanded        : true,
              text            : '', 
              draggable       : false,
              id              : '/' 
            }   
          }); 
        }
    });
    I kept getting an error message from the Ext backend re an undefined config variable (line 75411 in ext-all-debug.js) - first line in the constructor method. It appears no check is being made for an undefined config. A quick fix as follows:

    Code:
    ...
        getRootNode : function(){},
        getChecked : function(a, startNode){},
    
        constructor: function(config) {
            config=config || {};  // THIS NEW LINE INSERTED HERE
            if (config.animate === undefined) {
                config.animate = Ext.enableFx;
            }
    ....
    Hope this helps
    ------------------------------------------
    Conor Armstrong
    tw: @evathedog
    web: rockstown.com

    Ext.ux.form.AutoCombo
    Ext.ux.SimpleIFrame
    Ext.ux.form.ToolFieldSet

    Knowledge is realising that the street is one-way, wisdom is looking both directions anyway.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,833
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Similar Threads

  1. Replies: 2
    Last Post: 8 Apr 2011, 7:23 AM
  2. [OPEN] [CLOSED]Error extending store ...
    By keckeroo in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 8 Nov 2010, 6:04 PM
  3. Extending gridpanel with tbar and attached events
    By teox76 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 4 May 2010, 7:10 AM
  4. Replies: 6
    Last Post: 19 Mar 2010, 2:32 AM
  5. [2.0.2][CLOSED] Panel bug on render...fix attached
    By jerrybrown5 in forum Ext 2.x: Bugs
    Replies: 7
    Last Post: 7 Apr 2008, 5:47 PM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi