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 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/acd1235ca6e16176dc4bc90a1f031dd83ca3faf0 → 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 |
---|
Changed January 23, 2010 05:27PM UTC by comment:2
component: | dimensions → offset |
---|---|
resolution: | → fixed |
status: | new → closed |