Skip to main content

Bug Tracker

Side navigation

#5888 closed bug (fixed)

Opened January 21, 2010 03:23PM UTC

Closed January 23, 2010 05:27PM UTC

Last modified October 04, 2011 01:10PM UTC

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

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

Attachments (0)
Change History (3)

Changed January 21, 2010 03:25PM UTC by kswedberg comment:1

description: 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/acd1235ca6e16176dc4bc90a1f031dd83ca3faf0When 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

Changed January 23, 2010 05:27PM UTC by john comment:2

component: dimensionsoffset
resolution: → fixed
status: newclosed

Changed October 04, 2011 01:10PM UTC by ramu comment:3