#6710 closed bug (fixed)
tabs module uses global selectors instead of local to "this.element" element
Reported by: | saksmlz | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.7 |
Component: | ui.tabs | Version: | 1.8.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
There is a difference in how does it work in cases:
Consider we have second html converted into document fragment.
var container = $('<div><div id="tabs"><ul><li><a href="#tabs-1">Nunc tincidunt</a></li><li><a href="#tabs-2">Proin dolor</a></li> </ul> <div id="tabs-1"> <p>first</p> </div> <div id="tabs-2"> <p>second</p> </div></div>');
- container.find('#tabs').appendTo('body').tabs();
- container.find('#tabs').tabs().appendTo('body');
Variant 1 works as expected but 2 don't.
Change History (4)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Tabs: Added context to global selectors. Fixed #6710 - tabs module uses global selectors instead of local to "this.element" element.
Changeset: 63ec1152d810a80596b195301ee3d2cd3d6a1776
comment:3 Changed 12 years ago by
Milestone: | 1.9 → 1.8.7 |
---|
Note: See
TracTickets for help on using
tickets.
http://jsfiddle.net/mNLLC/