]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
the tooltips are initialized at the begining itself 4567/head
authorLonewolf <nikhilkalige@gmail.com>
Fri, 28 Feb 2014 18:10:13 +0000 (23:40 +0530)
committerLonewolf <nikhilkalige@gmail.com>
Fri, 28 Feb 2014 18:10:13 +0000 (23:40 +0530)
removed unused is_touch from showtip function

js/foundation/foundation.tooltip.js

index 93715939adae43d7813a5d4279436818e3f09c35..8b5f1e43f81085f93b658124689e3615d44df7b4 100644 (file)
@@ -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);