Ticket #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: | ||
| Blocking: | Blocked by: |
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
comment:1 Changed 3 years ago by scott.gonzalez
- Status changed from new to closed
- Resolution set to fixed
comment:3 Changed 3 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


Fixed in 52a052b.