Author: damoxc

Revision: 5150

Log:
        assign the cookieprovider to Deluge.UI.cookies

Diff:
Modified: trunk/deluge/ui/web/js/Deluge.UI.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.UI.js 2009-04-24 17:58:11 UTC (rev 5149)
+++ trunk/deluge/ui/web/js/Deluge.UI.js 2009-04-24 18:09:58 UTC (rev 5150)
@@ -23,9 +23,13 @@
 */
 
 Deluge.UI = {
+
+       cookies: new Ext.state.CookieProvider(),
+       
+       errorCount: 0,
+       
        initialize: function() {
-               this.errorCount = 0;
-               Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
+               Ext.state.Manager.setProvider(this.cookies);            
                this.MainPanel = new Ext.Panel({
                        id: 'mainPanel',
                        iconCls: 'x-deluge-main-panel',
@@ -44,7 +48,7 @@
                        layout: 'fit',
                        items: [this.MainPanel]
                });
-
+               
                Deluge.Login.show();
                
                Deluge.Events.on("connect", this.onConnect, this);



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