[pve-devel] [PATCH manager 3/3] check earlier if the logview is destroyed
Dominik Csapak
d.csapak at proxmox.com
Wed Feb 15 14:55:50 CET 2017
because extjs 6.2 handles destroying of components differently (namely
asynchronous), we have to check earlier if the view is destroyed, else
we get a 'cannot access ~ of undefined' error
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/panel/LogView.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/www/manager6/panel/LogView.js b/www/manager6/panel/LogView.js
index 5b64dec..4be7c50 100644
--- a/www/manager6/panel/LogView.js
+++ b/www/manager6/panel/LogView.js
@@ -39,12 +39,13 @@ Ext.define('PVE.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) {
--
2.1.4
More information about the pve-devel
mailing list