reset the torrents object upon a disconnect so there aren't any errors when reconnecting

This commit is contained in:
Damien Churchill 2010-03-14 09:05:12 +00:00
commit 21431f18e1

View file

@ -248,6 +248,9 @@ Copyright:
return this.getSelectionModel().getSelected(); return this.getSelectionModel().getSelected();
}, },
/**
* Returns the currently selected records.
*/
getSelections: function() { getSelections: function() {
return this.getSelectionModel().getSelections(); return this.getSelectionModel().getSelections();
}, },
@ -294,6 +297,7 @@ Copyright:
// private // private
onDisconnect: function() { onDisconnect: function() {
this.getStore().removeAll(); this.getStore().removeAll();
this.torrents = {};
}, },
// private // private