Permalink
Browse files

Merge branch 'release/1.1'

  • Loading branch information...
2 parents 3a63901 + e1186b9 commit 00046acada20253d5398403dd9964e0ed8814bc1 Justin de Vesine committed May 4, 2012
Showing with 12 additions and 3 deletions.
  1. +10 −1 jquery.cf.popover.js
  2. +2 −2 jquery.cf.popover.min.js
View
@@ -1,5 +1,5 @@
/*!
- * CF Popover v1.0.1
+ * CF Popover v1.1
* A lightweight framework for positioning iPad-style popover elements against triggers.
*
* Copyright 2011-2012, Crowd Favorite (http://crowdfavorite.com)
@@ -147,6 +147,15 @@
};
this.$trigger.trigger('popover-hide');
},
+
+ toggle: function(immediate) {
+ if (this.popoverIsOpen()) {
+ this.hide(immediate);
+ }
+ else {
+ this.show();
+ }
+ },
/* Event handler for showing popover */
showPopover: function (e) {
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 00046ac

Please sign in to comment.