]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
check earlier if the logview is destroyed
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 18 Dec 2017 09:32:22 +0000 (10:32 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Thu, 11 Jan 2018 13:48:13 +0000 (14:48 +0100)
this is a port from pve-manager commit:
bde1efbf66cf8794d99708b41d92b2106c44f192

which fixes a problem with destroying the logview in extjs 6.2

panel/LogView.js

index 73b71c4762290dfa43e90134163d5ace30f15fbc..05a90a30911c68e6d82785d3ab464a77e2924b67 100644 (file)
@@ -39,12 +39,13 @@ Ext.define('Proxmox.panel.LogView', {
 
     updateView: function(start, end, total, text) {
         var me = this;
-       var el = me.dataCmp.el;
 
        if (me.destroyed) { // return if element is not there anymore
            return;
        }
 
+       var el = me.dataCmp.el;
+
        if (me.viewInfo && me.viewInfo.start === start &&
            me.viewInfo.end === end && me.viewInfo.total === total &&
            me.viewInfo.textLength === text.length) {