Skip to main content

Bug Tracker

Side navigation

Ticket #5652: native.patch
File native.patch, 0.5 KB (added by adamlogic, December 18, 2009 09:49PM UTC)

This patch fixes the issue for me, but I don't know what side effects might be. I have not run the test suite against this patch.

diff --git a/public/javascripts/libraries/jquery.js b/public/javascripts/libraries/jquery.js
index 6b39ab4..0819dc6 100644
--- a/public/javascripts/libraries/jquery.js
+++ b/public/javascripts/libraries/jquery.js
@@ -1038,7 +1038,7 @@ jQuery.event = {
 		if ( !bubbling && nativeFn && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type === "click") ) {
 			this.triggered = true;
 			try {
-				nativeFn();
+				nativeFn.apply(elem);
 			// prevent IE from throwing an error for some hidden elements
 			} catch (e) {}
 		}

Download in other formats:

Original Format