Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 2, 2014

Conversation

blankmaker
Copy link
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
Copy link
Collaborator

cvrebert commented Oct 2, 2014

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 this to the v3.2.1 milestone Oct 2, 2014
@@ -246,7 +246,7 @@ <h2 id="popovers-usage">Usage</h2>
<p>Initializes popovers for an element collection.</p>

<h4>.popover('show')</h4>
<p>Reveals an element's popover.</p>
<p>Reveals an element's popover. Method will check if title or content exists before displaying.</p>
Copy link
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
Copy link
Collaborator

cvrebert commented Oct 2, 2014

Thanks!

@blankmaker
Copy link
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Popover's content function is executed twice
2 participants