Permalink
Browse files

Flipped showTip/show and closeTip/hide API aliases.

  • Loading branch information...
stevenbenner committed Oct 4, 2012
1 parent 56bd5b4 commit a14b3b26e636cb4685458685aef2c80b451df72d
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core.js
View
@@ -179,7 +179,7 @@ $.powerTip = {
* @param {jQuery} element The element that the tooltip should for.
* @param {jQuery.Event=} event jQuery event for hover intent and mouse tracking (optional).
*/
- showTip: function apiShowTip(element, event) {
+ show: function apiShowTip(element, event) {
if (event) {
elementShowAndTrack(element.first(), event);
} else {
@@ -204,7 +204,7 @@ $.powerTip = {
* @param {jQuery=} element A specific element whose tip should be closed (optional).
* @param {boolean=} immediate Disable close delay (optional).
*/
- closeTip: function apiCloseTip(element, immediate) {
+ hide: function apiCloseTip(element, immediate) {
if (element) {
elementHideTip(element.first(), immediate);
} else {
@@ -240,8 +240,8 @@ $.powerTip = {
};
// API aliasing
-$.powerTip.show = $.powerTip.showTip;
-$.powerTip.hide = $.powerTip.closeTip;
+$.powerTip.showTip = $.powerTip.show;
+$.powerTip.closeTip = $.powerTip.hide;
/**
* Creates a new CSSCordinate object.

0 comments on commit a14b3b2

Please sign in to comment.