Module: deluge Branch: master Commit: 21431f18e155a5b6d942219e33cd74a4ab300df3
Author: Damien Churchill <[email protected]> Date: Sun Mar 14 09:05:12 2010 +0000 reset the torrents object upon a disconnect so there aren't any errors when reconnecting --- deluge/ui/web/js/deluge-all/Deluge.Torrents.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Deluge.Torrents.js b/deluge/ui/web/js/deluge-all/Deluge.Torrents.js index 8c10bcd..dfdf0cf 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Torrents.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Torrents.js @@ -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 -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
