]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
data: diffstore: fix autoDestroyRstore option
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 18 Nov 2021 09:50:10 +0000 (10:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Nov 2021 10:14:31 +0000 (11:14 +0100)
the change from extjs 6.0.1 to 7.0.0 removed 'onDestroy' but brought
us 'doDestroy' for stores

we did not notice since 'onDestroy' was a private method and thus
the changelog did not mention this (doDestroy is a public method meant
exactly for our use case)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/data/DiffStore.js

index e4143f560b6b0199dcf59f5cc2cfbeae71e30019..935bc11cba291a76aaa48373ef3fe29d23bb968d 100644 (file)
@@ -28,7 +28,7 @@ Ext.define('Proxmox.data.DiffStore', {
     // config is passed instead of an existing rstore instance
     autoDestroyRstore: false,
 
-    onDestroy: function() {
+    doDestroy: function() {
        let me = this;
        if (me.autoDestroyRstore) {
            if (Ext.isFunction(me.rstore.destroy)) {