// But now, this "simulate" function is used only for events
// for which stopPropagation() is noop, so there is no need for that anymore.
//
- // For the compat branch though, guard for "click" and "submit"
+ // For the 1.x branch though, guard for "click" and "submit"
// events is still used, but was moved to jQuery.event.stopPropagation function
// because `originalEvent` should point to the original event for the constancy
// with other events and for more focused logic
var result = jQuery( document.createElement( "div" ) ).offset();
- // These tests are solely for master/compat consistency
+ // These tests are solely for 2.x/1.x consistency
// Retrieving offset on disconnected/hidden elements is not officially
// valid input, but will return zeros for back-compat
assert.equal( result.top, 0, "Check top" );
node.remove();
- // These tests are solely for master/compat consistency
+ // These tests are solely for 2.x/1.x consistency
// Retrieving offset on disconnected/hidden elements is not officially
// valid input, but will return zeros for back-compat
assert.equal( result.top, 0, "Retrieving offset on hidden elements returns zeros (gh-2310)" );
assert.equal( $( "#scroll-1-1" ).offset().top, 11, "jQuery('#scroll-1-1').offset().top" );
assert.equal( $( "#scroll-1-1" ).offset().left, 11, "jQuery('#scroll-1-1').offset().left" );
- // These tests are solely for master/compat consistency
+ // These tests are solely for 2.x/1.x consistency
// Retrieving offset on disconnected/hidden elements is not officially
// valid input, but will return zeros for back-compat
// assert.equal( $( "#hidden" ).offset().top, 0, "Hidden elements do not subtract scroll" );