From 556310bb621d9cde05fe66c67352d146fa759bdb Mon Sep 17 00:00:00 2001 From: Richard Scarrott Date: Mon, 2 Jul 2012 15:37:38 +0200 Subject: [PATCH] `className` option now gets applied to outer div and the inner div has been removed to allow control over z-index as well as the other hard-coded functional CSS props. --- tooltipsy.source.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/tooltipsy.source.js b/tooltipsy.source.js index 4516f41..02d116a 100644 --- a/tooltipsy.source.js +++ b/tooltipsy.source.js @@ -108,7 +108,7 @@ } return s; })(base.settings.css) > 0) { - base.$tip.css(base.settings.css); + this.$tipsy.css(base.settings.css); } base.width = base.$tipsy.outerWidth(); base.height = base.$tipsy.outerHeight(); @@ -160,8 +160,8 @@ return; } - if (e && e.relatedTarget === base.$tip[0]) { - base.$tip.bind('mouseleave', function (e) { + if (e && e.relatedTarget === this.$tipsy[0]) { + this.$tipsy.bind('mouseleave', function (e) { if (e.relatedTarget === base.$el[0]) { return; } @@ -174,12 +174,11 @@ $.tooltipsy.prototype.readify = function () { this.ready = true; - this.$tipsy = $('