aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-03-14 00:23:36 +0100
committerDave Methvin <dave.methvin@gmail.com>2013-04-03 20:51:30 -0400
commit1205103a72db407bfbc0de3d9b78f1fd6a02520c (patch)
treeb80011049028520865ec59875bb6cded54f76f3f /src/event.js
parent9eb838e4189c7afbd187b4663923d97a608811ef (diff)
downloadjquery-1205103a72db407bfbc0de3d9b78f1fd6a02520c.tar.gz
jquery-1205103a72db407bfbc0de3d9b78f1fd6a02520c.zip
Update grunt-contrib-jshint to 0.3.0, close gh-1204.
(cherry picked from 4adde5d14534799f3bcfac2771e1513be8a56a2f) Conflicts: src/data.js src/effects.js
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js
index 4804e5a7d..33c8194c3 100644
--- a/src/event.js
+++ b/src/event.js
@@ -402,7 +402,9 @@ jQuery.event = {
// Avoid non-left-click bubbling in Firefox (#3861)
if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
+ /* jshint eqeqeq: false */
for ( ; cur != this; cur = cur.parentNode || this ) {
+ /* jshint eqeqeq: true */
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
if ( cur.disabled !== true || event.type !== "click" ) {