Bug Tracker

Modify

Ticket #5888 (closed bug: fixed)

Opened 2 years ago

Last modified 4 months ago

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

comment:1 Changed 2 years ago by kswedberg

  • Description modified (diff)

comment:2 Changed 2 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed
  • Component changed from dimensions to offset

comment:3 Changed 4 months ago by ramu

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.