Issue 43 in clicknlearn: Does not work with jQuery 1.3 and higher

1 view
Skip to first unread message

click...@googlecode.com

unread,
Nov 26, 2010, 8:15:40 PM11/26/10
to click...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 43 by berenddeboer: Does not work with jQuery 1.3 and higher
http://code.google.com/p/clicknlearn/issues/detail?id=43

The problem is the fireEvent definition. This expects the old jQuery 1.2
signature of

triggerHandler: function( type, data, fn )

However, in jQuery 1.3 this is:

triggerHandler: function( type, data ) {

Unfortunately the fn was a "hidden" feature, and has been removed since 1.3.

I fixed this by replacing fireEvent with:

<code>
fireEvent: function(eventName, e, val) {
var data = [e, this.prepareCallbackObj(val)];
this.element.triggerHandler('combobox' + eventName, data);
f = this.options[eventName];
if (f && jQuery.isFunction(f))
ret = f.apply(this, data);
},
</code>

Reply all
Reply to author
Forward
0 new messages