Ticket #5888 (closed bug: fixed)
offset(coordinates) returns null when attached to empty jQuery set
|Reported by:||kswedberg||Owned by:||brandon|
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