Skip to content

Commit

Permalink
Clarify .hide versus .hidePopover
Browse files Browse the repository at this point in the history
  • Loading branch information
ziz committed Dec 1, 2011
1 parent 84461b7 commit df621c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.markdown
Expand Up @@ -86,9 +86,9 @@ You can also pass options. This would make the popover appear at the right-top e

You can access methods and data for a popover after it's been initialized via the data API.

$('.trigger').data('popover').hidePopover();
$('.trigger').data('popover').hide(); // .hidePopover(event) can be used, but will stop propagation of the event
$('.trigger').data('popover').opts.my // value of 'my' option for this instance

Duck-typing the constructor function for popovers is possible by changing:

$.fn.popover.Popover
$.fn.popover.Popover

0 comments on commit df621c1

Please sign in to comment.