Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  1. #1
    Sencha User steffenbrem's Avatar
    Join Date
    Mar 2012
    Posts
    36
    Vote Rating
    2
    steffenbrem is on a distinguished road

      0  

    Default HOW TO Override Ext.app.Controller control() method

    HOW TO Override Ext.app.Controller control() method


    Hello,

    I want to override the control method of the Ext.app.Controller class. Inside the override I want to call the this.callParent(), but this doesn't seem to work. When I execute my code again with the following override, it doesn't listen for the events in this.control():

    Code:
    Ext.override(Ext.app.Controller,{
        control: function() {
            this.callParent();
        }
    });
    Am I doing something wrong?

    I am using Ext JS 4.1.1

  2. #2
    Sencha User steffenbrem's Avatar
    Join Date
    Mar 2012
    Posts
    36
    Vote Rating
    2
    steffenbrem is on a distinguished road

      0  

    Default


    Fixed it! I just needed to pass the arguments to the callParent method:

    Code:
    Ext.override(Ext.app.Controller,{    control: function() {
            if ( ! this.blockControl ) {
                this.blockControl = true;
                this.callParent(arguments);
            }
        }
    });