diff --git a/deluge/ui/web/js/Deluge.Plugin.js b/deluge/ui/web/js/Deluge.Plugin.js index 0a2182abf..333e6c5cb 100644 --- a/deluge/ui/web/js/Deluge.Plugin.js +++ b/deluge/ui/web/js/Deluge.Plugin.js @@ -39,7 +39,7 @@ Deluge.Plugin = Ext.extend(Ext.util.Observable, { "disabled": true }); this.isDelugePlugin = true; - Deluge.Plugins.push(this); + Deluge.Plugins[this.name] = this; Deluge.Plugin.superclass.constructor.call(this, config); } }); \ No newline at end of file diff --git a/deluge/ui/web/js/Deluge.js b/deluge/ui/web/js/Deluge.js index 3eab45a8d..530324d21 100644 --- a/deluge/ui/web/js/Deluge.js +++ b/deluge/ui/web/js/Deluge.js @@ -91,7 +91,7 @@ Ext.namespace('Ext.deluge'); return String.format(tpl, text, width, barWidth, textWidth); } - Deluge.Plugins = []; + Deluge.Plugins = {}; })(); // Hinting for gettext_gen.py