Skip to content

Fix #12563: Elaborate that popover('show') checks title/content - #14716

Merged
cvrebert merged 1 commit into
twbs:masterfrom
blankmaker:docs/fix-12563
Oct 2, 2014
Merged

cvrebert merged 1 commit into
twbs:masterfrom
blankmaker:docs/fix-12563

Conversation

@blankmaker

Copy link
Copy Markdown
Contributor

Fixes #12563: Explain in Popover docs that the show method will check to see if the element's title or content exists before displaying.

This seemed like the only logical place for it since it should only happen if the show method is invokved.
Another possible place is in the content section under Options, but it didn't seem right to explain here that the function would execute twice if show is invoked and the title doesn't exist.

@cvrebert

cvrebert commented Oct 2, 2014

Copy link
Copy Markdown
Collaborator

This is already documented on line 6 of the file, but it seems reasonable to repeat it.
Please also make the corresponding change to the Tooltip docs, for consistency.
X-Ref: #14257.

@cvrebert cvrebert added js JavaScript or TypeScript sources and plugins docs Documentation site and its content labels Oct 2, 2014
@cvrebert cvrebert added this to the v3.2.1 milestone Oct 2, 2014
Comment thread docs/_includes/js/popovers.html Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For clarity, I would suggest using the phrasing of the existing note.

cvrebert added a commit that referenced this pull request Oct 2, 2014
Fix #12563: Elaborate that popover('show') checks title/content
@cvrebert
cvrebert merged commit 64a74e9 into twbs:master Oct 2, 2014
@cvrebert

cvrebert commented Oct 2, 2014

Copy link
Copy Markdown
Collaborator

Thanks!

@blankmaker

Copy link
Copy Markdown
Contributor Author

Anytime!

@blankmaker
blankmaker deleted the docs/fix-12563 branch October 2, 2014 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation site and its content js JavaScript or TypeScript sources and plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Popover's content function is executed twice

2 participants