Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
Description (last modified by kswedberg) (diff)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
