title: How to call grandparent function of a class in extjs?
body: <p>I have issues understanding scopes in javascript.Let's suppose i have the following code:</p>
  
  <pre><code> Ext.define('MA.controller.user',{
     extend : 'Ext.app.Controller',
     editUser:function(){},
     updateUser : function() {
       Ext.Ajax.request({
         url : './editall',
         callback : function(options, success, response) {
           this.editUser();
         }
       })
     }//eof init
   })//eof class
  </code></pre>
  
  <p>As you can see, this.editUser() is nested into Ext.Ajax.request and updateUser</p>
  
  <p>this.editUser() will return undefined.How can i call editUser inside callback?</p>