fix Deluge.Events.fire

This commit is contained in:
Damien Churchill 2009-02-19 20:46:08 +00:00
parent faae99d3d8
commit fda01f59a7

View File

@ -6,10 +6,11 @@ var Deluge = {
Deluge.Events = {
_events: new Hash(),
fire: function(eventName) {
fire: function(eventName, arg) {
if (!this._events[eventName]) return;
$each(this._events[eventName], function(fn) {
fn(Deluge.Client);
if ($type(fn) != 'function') return;
fn(arg);
});
},