diff --git a/deluge/ui/web/js/deluge-all/Deluge.Torrents.js b/deluge/ui/web/js/deluge-all/Deluge.Torrents.js index 8c10bcd6a..dfdf0cffd 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