]> source.dussan.org Git - jquery.git/commitdiff
Fix 9cf812d7 oldIE failures
authorRichard Gibson <richard.gibson@gmail.com>
Sun, 13 Jan 2013 00:09:49 +0000 (19:09 -0500)
committerRichard Gibson <richard.gibson@gmail.com>
Sun, 13 Jan 2013 01:59:04 +0000 (20:59 -0500)
src/event.js

index 5a57fe9f6526c0bef74403e135c6610e02099776..6c3dc1b80d7a72dbae5f2a5bc526b6abf1b69fca 100644 (file)
@@ -528,7 +528,7 @@ jQuery.event = {
                click: {
                        // For checkbox, fire native event so checked state will be right
                        trigger: function() {
-                               if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
+                               if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {
                                        this.click();
                                        return false;
                                }