#5888 closed bug (fixed)
offset(coordinates) returns null when attached to empty jQuery set
Reported by: | kswedberg | Owned by: | brandon |
---|---|---|---|
Priority: | minor | Milestone: | 1.4.1 |
Component: | offset | Version: | 1.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
When using the setter method .offset(coords), it should return the jQuery object. This works as expected unless there are no matched elements in the jQuery object.
I've pushed a fix to my fork on Github. Here is the commit: http://github.com/kswedberg/jquery/commit/fcd09030caaaf76fe3dacbe80ee6cd386c17b1e4
Change History (3)
comment:1 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 13 years ago by
Component: | dimensions → offset |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 Changed 11 years ago by
Note: See
TracTickets for help on using
tickets.
Landed. http://github.com/jquery/jquery/commit/2c28f229e5eb49f1469fd36ee979529a492f0f42