> $("#btnCounter").bindObj( "click", this.count );
>
> That, alone, wouldn't be too hard to add.
How about adding additional arguments to bind to the event itself, eg.
event.data contains an array of all additional arguments. It's quite common in
other UI frameworks to pass data around within the event object. That way
wouldn't interfere with the additional data coming from trigger.
Usage might look like this:
var handler = function(event, stuff1, stuff2) {
// event.data == ["foo", "bar"]
// stuff1 == "bar"
// stuff2 == "foo"
};
$(...).bind("click", handler, "foo", "bar").trigger("click", "bar", "foo");
Or maybe that should be uniquified with "bindData" and "triggerData" or
something like that.
--
Jörn Zaefferer
http://bassistance.de
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/