Module: deluge
Branch: master
Commit: bf2fc64ce085a6daf9ce91b7494fa316dacc8fa5

Author: Damien Churchill <[email protected]>
Date:   Sat Apr 24 00:43:24 2010 +0100

remove an unrequired function() wrapping

---

 deluge/ui/web/js/deluge-all/Deluge.js |   89 ++++++++++++++++-----------------
 1 files changed, 43 insertions(+), 46 deletions(-)

diff --git a/deluge/ui/web/js/deluge-all/Deluge.js 
b/deluge/ui/web/js/deluge-all/Deluge.js
index bd12b60..96810be 100644
--- a/deluge/ui/web/js/deluge-all/Deluge.js
+++ b/deluge/ui/web/js/deluge-all/Deluge.js
@@ -35,58 +35,55 @@ Ext.state.Manager.setProvider(new 
Ext.state.CookieProvider());
 
 // Add some additional functions to ext and setup some of the
 // configurable parameters
-(function() {
+Ext.apply(Ext, {
+       escapeHTML: function(text) {
+               text = String(text).replace('<', '&lt;').replace('>', '&gt;');
+               return text.replace('&', '&amp;');
+       },
 
-    Ext.apply(Ext, {
-               escapeHTML: function(text) {
-                       text = String(text).replace('<', '&lt;').replace('>', 
'&gt;');
-                       return text.replace('&', '&amp;');
-               },
-       
-               isObjectEmpty: function(obj) {
-                       for(var i in obj) { return false; }
-                       return true;
-               },
+       isObjectEmpty: function(obj) {
+               for(var i in obj) { return false; }
+               return true;
+       },
 
-               isObjectsEqual: function(obj1, obj2) {
-                       var equal = true;
-                       if (!obj1 || !obj2) return false;
-                       for (var i in obj1) {
-                               if (obj1[i] != obj2[i]) {
-                                       equal = false;
-                               }
-                       }
-                       return equal;
-               },
-           
-               keys: function(obj) {
-                       var keys = [];
-                       for (var i in obj) if (obj.hasOwnProperty(i))
-                       {
-                               keys.push(i);
+       isObjectsEqual: function(obj1, obj2) {
+               var equal = true;
+               if (!obj1 || !obj2) return false;
+               for (var i in obj1) {
+                       if (obj1[i] != obj2[i]) {
+                               equal = false;
                        }
-                       return keys;
-               },
+               }
+               return equal;
+       },
+       
+       keys: function(obj) {
+               var keys = [];
+               for (var i in obj) if (obj.hasOwnProperty(i))
+               {
+                       keys.push(i);
+               }
+               return keys;
+       },
 
-               values: function(obj) {
-                       var values = [];
-                       for (var i in obj) {
-                               if (obj.hasOwnProperty(i)) {
-                                       values.push(obj[i]);
-                               }
+       values: function(obj) {
+               var values = [];
+               for (var i in obj) {
+                       if (obj.hasOwnProperty(i)) {
+                               values.push(obj[i]);
                        }
-                       return values;
-               },
-                   
-               splat: function(obj) {
-                       var type = Ext.type(obj);
-                       return (type) ? ((type != 'array') ? [obj] : obj) : [];
                }
-    });
-    Ext.getKeys = Ext.keys;
-    Ext.BLANK_IMAGE_URL = deluge.config.base + 'images/s.gif';
-       Ext.USE_NATIVE_JSON = true;
-})();
+               return values;
+       },
+               
+       splat: function(obj) {
+               var type = Ext.type(obj);
+               return (type) ? ((type != 'array') ? [obj] : obj) : [];
+       }
+});
+Ext.getKeys = Ext.keys;
+Ext.BLANK_IMAGE_URL = deluge.config.base + 'images/s.gif';
+Ext.USE_NATIVE_JSON = true;
 
 // Create the Deluge namespace
 Ext.apply(Deluge, {

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