remove an unrequired function() wrapping
This commit is contained in:
parent
3fdfedb7f7
commit
bf2fc64ce0
@ -35,9 +35,7 @@ Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
|
|||||||
|
|
||||||
// Add some additional functions to ext and setup some of the
|
// Add some additional functions to ext and setup some of the
|
||||||
// configurable parameters
|
// configurable parameters
|
||||||
(function() {
|
Ext.apply(Ext, {
|
||||||
|
|
||||||
Ext.apply(Ext, {
|
|
||||||
escapeHTML: function(text) {
|
escapeHTML: function(text) {
|
||||||
text = String(text).replace('<', '<').replace('>', '>');
|
text = String(text).replace('<', '<').replace('>', '>');
|
||||||
return text.replace('&', '&');
|
return text.replace('&', '&');
|
||||||
@ -82,11 +80,10 @@ Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
|
|||||||
var type = Ext.type(obj);
|
var type = Ext.type(obj);
|
||||||
return (type) ? ((type != 'array') ? [obj] : obj) : [];
|
return (type) ? ((type != 'array') ? [obj] : obj) : [];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Ext.getKeys = Ext.keys;
|
Ext.getKeys = Ext.keys;
|
||||||
Ext.BLANK_IMAGE_URL = deluge.config.base + 'images/s.gif';
|
Ext.BLANK_IMAGE_URL = deluge.config.base + 'images/s.gif';
|
||||||
Ext.USE_NATIVE_JSON = true;
|
Ext.USE_NATIVE_JSON = true;
|
||||||
})();
|
|
||||||
|
|
||||||
// Create the Deluge namespace
|
// Create the Deluge namespace
|
||||||
Ext.apply(Deluge, {
|
Ext.apply(Deluge, {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user