From fb0adbcded274919a079c7738556594be6ce817e Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 28 Apr 2010 15:25:31 +0100 Subject: [PATCH] return this.states instead of the store contents --- deluge/ui/web/js/deluge-all/FilterPanel.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/FilterPanel.js b/deluge/ui/web/js/deluge-all/FilterPanel.js index cd8545ddd..de20cb7f1 100644 --- a/deluge/ui/web/js/deluge-all/FilterPanel.js +++ b/deluge/ui/web/js/deluge-all/FilterPanel.js @@ -95,11 +95,7 @@ Deluge.FilterPanel = Ext.extend(Ext.Panel, { * Return the current states in the filter */ getStates: function() { - var states = []; - this.list.getStore().each(function(r) { - states.push(r.get('filter')); - }); - return states; + return this.states; }, /**