]> git.proxmox.com Git - pmg-gui.git/commitdiff
cleanup: use Ext.data.Proxy.Ajax.abort()
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Sep 2017 05:22:39 +0000 (07:22 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Sep 2017 05:22:39 +0000 (07:22 +0200)
js/StatStore.js

index 8591da956cd2971b0243ef66e3526ce412ac50b9..a9fe611f23c50530e176d7d66a9e3a47207507d7 100644 (file)
@@ -19,8 +19,7 @@ Ext.define('PMG.data.StatStore', {
     reload: function() {
        var me = this;
 
-       Ext.Ajax.abort(me.proxy.activeRequest);
-       delete me.proxy.activeRequest;
+       me.proxy.abort(); // abort pending requests
 
        if (me.staturl === undefined) {
            me.proxy.extraParams = {};