Prevent observers for unloadAll


#1

I’ve built a little table mixin that filters table records. It works beautifully until I run unloadAll() on the model. I’ve created an issue on stack overflow but have had no answers so far.

The issue is that my table filter observer gets called for each record that is removed by unloadAll(). Even with more than 50 records this starts getting quite slow. I’m hoping to prevent the observer being called during the unload phase, ie only at the end once the array is empty rather after each element is removed from the list.

My guess is that its more intuitive to only call the observers at the end of unloadAll() rather than after each record is removed from the store.