Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#5963 closed bug (fixed)

Position: option 'of' accepts jQuery object unless it wraps document

Reported by: rdworth Owned by:
Priority: trivial Milestone: 1.8.5
Component: ui.position Version: 1.8.4
Keywords: Cc:
Blocked by: Blocking:

Description

One of the undocumented accepted types ( see #5962 - Position: option 'of' can be other than type selector, undocumented ) of the position option 'of' is a jQuery object.

The 'of' option as of 1.8.4 accepts a selector string directly:

  of: "#parent",

or you can wrap the selector in a jQuery object before passing to 'of':

  of: $("#parent"),

Another accepted value of 'of' is the document

  of: document,

but if you wrap the document in a jQuery object like so:

  of: $(document),

it fails. This seems a bit inconsistent.

Change History (3)

comment:1 Changed 13 years ago by Scott González

Resolution: fixed
Status: newclosed

Fixed in 52a052b.

comment:2 Changed 13 years ago by Scott González

Milestone: 1.91.8.5

comment:3 Changed 12 years ago by Scott González

Position: Handle $(document) and $(window) for the of option. Fixes #5963 - Position: option 'of' accepts jQuery object unless it wraps document. Fixes #5655 - (Possible) Typo in jquery.ui.position 1.8.1.

Changeset: 52a052be79d21aa519ccb513dc00a7c54868ef03

Note: See TracTickets for help on using tickets.