Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#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 kswedberg)

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 10 years ago by kswedberg

Description: modified (diff)

comment:2 Changed 10 years ago by john

Component: dimensionsoffset
Resolution: fixed
Status: newclosed

comment:3 Changed 8 years ago by ramu

Note: See TracTickets for help on using tickets.