Skip to content

Dimensions: allow modification of coordinates argument #1853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

markelog
Copy link
Member

Fixes gh-1848

@@ -51,7 +51,9 @@ jQuery.offset = {
}

if ( jQuery.isFunction( options ) ) {
options = options.call( elem, i, curOffset );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's just a .top and .left in curOffset, what if we just constructed an object here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You afraid of additional impact on the performance? Given the offset reflows it shouldn't reflect on it.

@markelog markelog closed this in f7e60dc Nov 16, 2014
markelog added a commit that referenced this pull request Nov 10, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Updating coordinate object in function form of offset causes silent failure
2 participants