Skip to content

"close" spans can now be added in the initial DOM to avoid a FOUC without breaking the plugin behavior#4

Open
pjparra wants to merge 4 commits into
andrewwatts:masterfrom
pjparra:master
Open

"close" spans can now be added in the initial DOM to avoid a FOUC without breaking the plugin behavior#4
pjparra wants to merge 4 commits into
andrewwatts:masterfrom
pjparra:master

Conversation

@pjparra
Copy link
Copy Markdown

@pjparra pjparra commented Nov 8, 2012

To avoid a FOUC, we can add the "close" span directly into the initial DOM.
That caused the plugin not to bind events on these pre-added spans.
Now events are bound on all "close" spans, no matter if they were added by the plugin or were already present in the DOM.

To avoid a FOUC, we can add the "close" span directly into the initial DOM.
That caused the plugin not to bind events on these pre-added spans.
Now events are bound on all "close" spans, no matter if they were added by the plugin or were already present in the DOM.
As jQuery 1.9 removed the _tabify() method (and seems to have replaced it with _refresh() ?), some rewriting was necesary. While this should still work with jQuery 1.8 (not tested), it sure adds support for jQuery 1.9 and works fine.
@pjparra
Copy link
Copy Markdown
Author

pjparra commented Jan 17, 2013

Hi @andrewwatts

I know this repository didn't have much activity lately, but I just added support for jQueryUI 1.9. It should still work with jQueryUI 1.8, but I didn't have the opportunity to test it.

If someone tests it with jQueryUI 1.8, please let me know if it works or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant