mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 17:14:58 -05:00
Dimensions: allow modification of coordinates argument
Fixes gh-1848 Closes gh-1853
This commit is contained in:
@@ -51,7 +51,9 @@ jQuery.offset = {
|
||||
}
|
||||
|
||||
if ( jQuery.isFunction( options ) ) {
|
||||
options = options.call( elem, i, curOffset );
|
||||
|
||||
// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
|
||||
options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
|
||||
}
|
||||
|
||||
if ( options.top != null ) {
|
||||
|
||||
Reference in New Issue
Block a user