From 45b476bdbff7ac38518deb7898529bb9510f648f Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 1 Mar 2014 18:19:50 +0200 Subject: JS: remove unused variables. --- js/tests/unit/tooltip.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'js/tests/unit/tooltip.js') diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index e670883e3..e6ae11993 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -68,7 +68,7 @@ $(function () { test('should fire show event', function () { stop() - var tooltip = $('
') + $('
') .on('show.bs.tooltip', function () { ok(true, 'show was called') start() @@ -78,7 +78,7 @@ $(function () { test('should fire shown event', function () { stop() - var tooltip = $('
') + $('
') .on('shown.bs.tooltip', function () { ok(true, 'shown was called') start() @@ -88,7 +88,7 @@ $(function () { test('should not fire shown event when default prevented', function () { stop() - var tooltip = $('
') + $('
') .on('show.bs.tooltip', function (e) { e.preventDefault() ok(true, 'show was called') @@ -102,7 +102,7 @@ $(function () { test('should fire hide event', function () { stop() - var tooltip = $('
') + $('
') .on('shown.bs.tooltip', function () { $(this).tooltip('hide') }) @@ -115,7 +115,7 @@ $(function () { test('should fire hidden event', function () { stop() - var tooltip = $('
') + $('
') .on('shown.bs.tooltip', function () { $(this).tooltip('hide') }) @@ -128,7 +128,7 @@ $(function () { test('should not fire hidden event when default prevented', function () { stop() - var tooltip = $('
') + $('
') .on('shown.bs.tooltip', function () { $(this).tooltip('hide') }) @@ -272,14 +272,14 @@ $(function () { test('should show tooltip with delegate selector on click', function () { var div = $('
') - var tooltip = div.appendTo('#qunit-fixture') + div.appendTo('#qunit-fixture') .tooltip({ selector: 'a[rel=tooltip]', trigger: 'click' }) div.find('a').trigger('click') ok($('.tooltip').is('.fade.in'), 'tooltip is faded in') }) test('should show tooltip when toggle is called', function () { - var tooltip = $('') + $('') .appendTo('#qunit-fixture') .tooltip({trigger: 'manual'}) .tooltip('toggle') @@ -298,8 +298,8 @@ $(function () { test('should place tooltip inside window', function () { var container = $('
').appendTo('body') - .css({position: 'absolute', width: 200, height: 200, bottom: 0, left: 0}), - tooltip = $('Hover me') + .css({position: 'absolute', width: 200, height: 200, bottom: 0, left: 0}) + $('Hover me') .css({position: 'absolute', top: 0, left: 0}) .appendTo(container) .tooltip({placement: 'top', animate: false}) -- cgit v1.2.3