mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 18:08:39 +00:00
remove an unrequired function() wrapping
This commit is contained in:
parent
3fdfedb7f7
commit
bf2fc64ce0
1 changed files with 45 additions and 48 deletions
|
@ -35,9 +35,7 @@ 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, {
|
||||
Ext.apply(Ext, {
|
||||
escapeHTML: function(text) {
|
||||
text = String(text).replace('<', '<').replace('>', '>');
|
||||
return text.replace('&', '&');
|
||||
|
@ -82,11 +80,10 @@ Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
|
|||
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;
|
||||
})();
|
||||
});
|
||||
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, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue