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@proxmox.com>
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) {