diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2013-04-04 22:04:39 +0200 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-04-06 17:09:52 -0400 |
commit | dca7681284731053124e6437c5bec58e030cc91d (patch) | |
tree | 6646d538c7866f9336f2ac11a6e181b616a5632f /src/event.js | |
parent | 1b610266502490eab42a0b9ddfac2f93da0b0fe1 (diff) | |
download | jquery-dca7681284731053124e6437c5bec58e030cc91d.tar.gz jquery-dca7681284731053124e6437c5bec58e030cc91d.zip |
Improve CSS and `Support:` comments. Close gh-1220.
1) corrected box-sizing rules order - the unprefixed value should always be the last one
2) removed last semi-colons in CSS rules
3) updated support comments
code review changes + more consistent comment spacing
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/event.js b/src/event.js index a9620e241..45e82ccc4 100644 --- a/src/event.js +++ b/src/event.js @@ -508,7 +508,7 @@ jQuery.event = { event[ prop ] = originalEvent[ prop ]; } - // Support: Chrome 23+, Safari? + // Support: Safari 6.0+, Chrome < 28 // Target should not be a text node (#504, #13143) if ( event.target.nodeType === 3 ) { event.target = event.target.parentNode; @@ -554,7 +554,8 @@ jQuery.event = { beforeunload: { postDispatch: function( event ) { - // Support: Firefox 10+ + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. if ( event.result !== undefined ) { event.originalEvent.returnValue = event.result; } @@ -685,7 +686,7 @@ jQuery.each({ }); // Create "bubbling" focus and blur events -// Support: Firefox 10+ +// Support: Firefox, Chrome, Safari if ( !jQuery.support.focusinBubbles ) { jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { |