#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
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 13 years ago by
Milestone: | 1.9 → 1.8.5 |
---|
comment:3 Changed 12 years ago by
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.