From bfe90fd47754e44a02f0d9c364656ec20bf26f41 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 13 Jul 2015 12:47:44 +0200 Subject: [PATCH] Define context for setupTips if undefined --- src/sunstone/public/app/utils/tips.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sunstone/public/app/utils/tips.js b/src/sunstone/public/app/utils/tips.js index 32f9a382ca..4c95ba7a55 100644 --- a/src/sunstone/public/app/utils/tips.js +++ b/src/sunstone/public/app/utils/tips.js @@ -3,6 +3,10 @@ define(function(require) { //Replaces all class"tip" divs with an information icon that //displays the tip information on mouseover. var _setup = function(context, position) { + if (!context) { + context = $(document); + } + //For each tip in this context $('.tip', context).each(function() { var obj = $(this); @@ -16,6 +20,7 @@ define(function(require) { //replace the text with an icon and spans obj.html(''); }); + context.foundation('reflow', 'tooltip'); }