2013-08-07 1 views
0

Я использую PullRefresh в следующем коде, но он не работает в сборке:Сенча Touch - Неправильная версия функции 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 of pullRefresh.js получает excecuted, а не выше fetchLatest.

ответ