1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    62
    Vote Rating
    0
    slmd is on a distinguished road

      0  

    Default setActiveItems issues

    setActiveItems issues


    Hi all,

    I am having hard times understanding why i can't get back to the previous panel using this code below

    Code:
    appsDetails = Ext.extend(Ext.Panel, {
        layout: 'fit',
        scroll: 'verticall',
        
        initComponent: function() {
            
            this.dockedItems = [{
                xtype: 'toolbar',
                items: [{
                    ui: 'back',
                    scope: 'this',
                    handler: function() {
                        
                        console.log(this.ownerCt) //This returns "undefined"
                        
                        this.ownerCt.setActiveItem(this.prevCard, {
                            type: 'slide',
                            reverse: true,
                            scope: this,
                            after: function() {
                                this.destroy();
                            }
                        })
                    }
                }]
            }];
            
            this.items = [{
                styleHtmlContent: true,
                tpl: description,
                data: this.record.data
            }];
            
            appsDetails.superclass.initComponent.call(this);
        }
    });
    Actually when i click on the back button i have this error :
    Uncaught TypeError: Cannot call method 'setActiveItem' of undefined

    Thanks for your help
    Last edited by slmd; 18 Oct 2011 at 11:48 PM. Reason: Rephrasing

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Posts
    62
    Vote Rating
    0
    slmd is on a distinguished road

      0  

    Default


    Any idea?

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    62
    Vote Rating
    0
    slmd is on a distinguished road

      0  

    Default


    Sorry for having bothered you with this. I had to change this line "scope: 'this'," to this "scope: this,"

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