Skip to content

Commit df31b88

Browse files
committed
Event: compat -> 1.x in comments
Ref 3c56eac
1 parent 3c56eac commit df31b88

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/event/trigger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jQuery.extend( jQuery.event, {
164164
// But now, this "simulate" function is used only for events
165165
// for which stopPropagation() is noop, so there is no need for that anymore.
166166
//
167-
// For the compat branch though, guard for "click" and "submit"
167+
// For the 1.x branch though, guard for "click" and "submit"
168168
// events is still used, but was moved to jQuery.event.stopPropagation function
169169
// because `originalEvent` should point to the original event for the constancy
170170
// with other events and for more focused logic

test/unit/offset.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ QUnit.test( "disconnected node", function( assert ) {
6262

6363
var result = jQuery( document.createElement( "div" ) ).offset();
6464

65-
// These tests are solely for master/compat consistency
65+
// These tests are solely for 2.x/1.x consistency
6666
// Retrieving offset on disconnected/hidden elements is not officially
6767
// valid input, but will return zeros for back-compat
6868
assert.equal( result.top, 0, "Check top" );
@@ -77,7 +77,7 @@ QUnit.test( "hidden (display: none) element", function( assert ) {
7777

7878
node.remove();
7979

80-
// These tests are solely for master/compat consistency
80+
// These tests are solely for 2.x/1.x consistency
8181
// Retrieving offset on disconnected/hidden elements is not officially
8282
// valid input, but will return zeros for back-compat
8383
assert.equal( result.top, 0, "Retrieving offset on hidden elements returns zeros (gh-2310)" );
@@ -423,7 +423,7 @@ testIframe( "offset/scroll", "scroll", function( $, win, doc, assert ) {
423423
assert.equal( $( "#scroll-1-1" ).offset().top, 11, "jQuery('#scroll-1-1').offset().top" );
424424
assert.equal( $( "#scroll-1-1" ).offset().left, 11, "jQuery('#scroll-1-1').offset().left" );
425425

426-
// These tests are solely for master/compat consistency
426+
// These tests are solely for 2.x/1.x consistency
427427
// Retrieving offset on disconnected/hidden elements is not officially
428428
// valid input, but will return zeros for back-compat
429429
// assert.equal( $( "#hidden" ).offset().top, 0, "Hidden elements do not subtract scroll" );

0 commit comments

Comments
 (0)