Skip to main content

Bug Tracker

Side navigation

#6976 closed bug ()

Opened September 01, 2010 03:22AM UTC

Closed November 11, 2010 11:09PM UTC

.offset(fn) misbehaves if fn changes its argument

Reported by: dmethvin Owned by: dmethvin
Priority: low Milestone: 1.4.3
Component: offset Version: 1.4.2
Keywords: offset returns Cc:
Blocked by: Blocking:
Description

We should either document the current behavior or change it; are there other .setter(fn) methods that have the same issue?

See this thread:

http://forum.jquery.com/topic/should-position-make-a-defensive-copy-of-the-position-object-before-passing-it-to-a-callback

Attachments (0)
Change History (2)

Changed October 15, 2010 01:26AM UTC by addyosmani comment:1

keywords: → offset returns
owner: → dmethvin
priority: → low
status: newpending

Could you supply us with a test case (using your modification) so that we can accurately test, verify and establish whether this fix would work correctly and also whether it breaks any other functionality in the process?

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:2

status: pendingclosed

Automatically closed due to 14 days of inactivity.