mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
change Deluge.Plugins to an object rather than array
This commit is contained in:
parent
3d33696c94
commit
4df98df1f2
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ Deluge.Plugin = Ext.extend(Ext.util.Observable, {
|
||||||
"disabled": true
|
"disabled": true
|
||||||
});
|
});
|
||||||
this.isDelugePlugin = true;
|
this.isDelugePlugin = true;
|
||||||
Deluge.Plugins.push(this);
|
Deluge.Plugins[this.name] = this;
|
||||||
Deluge.Plugin.superclass.constructor.call(this, config);
|
Deluge.Plugin.superclass.constructor.call(this, config);
|
||||||
}
|
}
|
||||||
});
|
});
|
|
@ -91,7 +91,7 @@ Ext.namespace('Ext.deluge');
|
||||||
return String.format(tpl, text, width, barWidth, textWidth);
|
return String.format(tpl, text, width, barWidth, textWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
Deluge.Plugins = [];
|
Deluge.Plugins = {};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// Hinting for gettext_gen.py
|
// Hinting for gettext_gen.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue