(fix) also handle tasks deletion correctly

This commit is contained in:
Ludovic Marcotte
2015-08-12 18:31:06 -04:00
parent 336e4c93e9
commit 02daebe36b
@@ -277,7 +277,10 @@
Calendar.$$resource.post(c_folder, 'batchDelete', {uids: uids});
});
// We slice both arrays - might be useful if in the future, we can delete
// events and tasks at the same time.
_this.$Component.$events = _.difference(_this.$Component.$events, components);
_this.$Component.$tasks = _.difference(_this.$Component.$tasks, components);
};
/**