From: Lonewolf Date: Fri, 28 Feb 2014 18:10:13 +0000 (+0530) Subject: the tooltips are initialized at the begining itself X-Git-Tag: v5.2.1~5^2~3^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F4567%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git the tooltips are initialized at the begining itself removed unused is_touch from showtip function --- diff --git a/js/foundation/foundation.tooltip.js b/js/foundation/foundation.tooltip.js index 93715939a..8b5f1e43f 100644 --- a/js/foundation/foundation.tooltip.js +++ b/js/foundation/foundation.tooltip.js @@ -31,6 +31,8 @@ var self = this, S = self.S; + self.create(this.S(instance)); + $(this.scope) .off('.tooltip') .on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip', @@ -78,7 +80,7 @@ }); }, - showTip : function ($target, is_touch) { + showTip : function ($target) { var $tip = this.getTip($target); return this.show($target);