Integration of ArcGIS JS API code with ExtJS

Discussion created by bforbhavin on Jun 21, 2014
How can we call user-defined ArcGIS JS functions from ExtJS code? e.g. I want to call featureQuery() function from SearchAddress function in the following code.

searchPart: function(){ //ExtJS code
   require([],function(){//ArcGIS JS code
          function featureQuery(){

searchAddress: function(){//ExtJS code
  //I want to call featureQuery function here