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
parent 4929ba3c44
commit 21431f18e1
1 changed files with 4 additions and 0 deletions

View File

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