check earlier if the logview is destroyed

this is a port from pve-manager commit:
bde1efbf66cf8794d99708b41d92b2106c44f192

which fixes a problem with destroying the logview in extjs 6.2
This commit is contained in:
Dominik Csapak 2017-12-18 10:32:22 +01:00
parent f2bf80bd41
commit cf4ecb2bfe

View File

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