2013-08-07 38 views
0

我使用下面的代碼PullRefresh,但它不是在構建工作:煎茶觸摸 - Pullrefresh函數的版本不正確被調用

 xtype:'dataview', 
     mode:'multi', 
     plugins: [ 
      { 
       xclass: 'Ext.plugin.PullRefresh', 
       fetchLatest: function(plugin) { 
        var json = localStorage.getItem("JSON"); 
        Ext.Ajax.request({ 
         method:'POST', 
         url:webservice_url, 
         params:{ params:json}, 
         success:function (response) { 
          var storeobj = Ext.getStore('questions'); 
          storeobj.sync(); 
          storeobj.add(result.info.info); 
          storeobj.sync(); 
         }, 
         failure: function(res){ 
          console.log('Failure'); 
         } 
        }); 
       } 
      } 
     ], 

什麼,當我運行構建情況是,fetchLatest功能pullRefresh.js得到執行,而不是上面的fetchLatest函數。

回答