Bug Tracker


Ticket #2073 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

offset(): parent has no properties

Reported by: daepark Owned by: brandon
Priority: major Milestone: 1.2.2
Component: offset Version: 1.2.1
Keywords: Cc:
Blocking: Blocked by:


When calling offset, I sometimes get parent is not defined ("parent has no properties") error in firebug. The offending line is:

while ( parent.tagName && !/^body|html$/i.test(parent.tagName) ) {

checking for parent first seems to make this problem go away:

while ( parent && parent.tagName && !/^body|html$/i.test(parent.tagName) ) {

Change History

comment:1 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [4241]

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


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.