the store never fires/gets a destroy event, thus it
never stops the load_task and never unqueues itself in case
the store gets destroyed but not explicitely stopped
with overriding the destroy method, this works now as intended
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
autoStart: false,
+ destroy: function() {
+ var me = this;
+ me.load_task.cancel();
+ Proxmox.data.UpdateQueue.unqueue(me);
+ me.callParent();
+ },
+
constructor: function(config) {
var me = this;
me.callParent([config]);
- me.on('destroy', function() {
- load_task.cancel();
- Proxmox.data.UpdateQueue.unqueue(me);
- });
+ me.load_task = load_task;
if (me.autoStart) {
me.startUpdate();