Skip to main content

Search and Top Navigation

#5963 closed bug (fixed)

Opened August 17, 2010 10:20AM UTC

Closed August 27, 2010 05:37PM UTC

Last modified November 19, 2010 06:26PM UTC

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.

Attachments (0)
Change History (3)

Changed August 27, 2010 05:37PM UTC by scottgonzalez comment:1

resolution: → fixed
status: newclosed

Fixed in 52a052b.

Changed September 10, 2010 05:28PM UTC by scottgonzalez comment:2

milestone: 1.91.8.5

Changed November 19, 2010 06:26PM UTC by Scott González comment:3

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