Author: damoxc

Revision: 5738

Log:
        change Deluge.Plugins to an object rather than array

Diff:
Modified: trunk/deluge/ui/web/js/Deluge.Plugin.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Plugin.js     2009-09-14 10:05:53 UTC (rev 
5737)
+++ trunk/deluge/ui/web/js/Deluge.Plugin.js     2009-09-14 10:07:56 UTC (rev 
5738)
@@ -39,7 +39,7 @@
             "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

Modified: trunk/deluge/ui/web/js/Deluge.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.js    2009-09-14 10:05:53 UTC (rev 5737)
+++ trunk/deluge/ui/web/js/Deluge.js    2009-09-14 10:07:56 UTC (rev 5738)
@@ -91,7 +91,7 @@
                return String.format(tpl, text, width, barWidth, textWidth);
        }
        
-       Deluge.Plugins = [];
+       Deluge.Plugins = {};
 })();
 
 // Hinting for gettext_gen.py



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to