From: Julian Thilo Date: Fri, 14 Mar 2014 17:16:36 +0000 (+0100) Subject: Fix JSHint errors X-Git-Tag: v3.2.0~360 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d882a64201f2700bbb2c3a7342b4c8e447c694a;p=thirdparty%2Fbootstrap.git Fix JSHint errors X-Ref: https://github.com/twbs/bootstrap/commit/8c9739d4773c268b114296d90e61b5f4e2932517 --- diff --git a/js/tests/unit/scrollspy.js b/js/tests/unit/scrollspy.js index 09ec547571..d91b6b3131 100644 --- a/js/tests/unit/scrollspy.js +++ b/js/tests/unit/scrollspy.js @@ -33,41 +33,40 @@ $(function () { ok($topbar.find('.active', true)) }) - test("should only switch active class on current target", function () { - var - sectionHTML = '
' - + '
' - + '
' - + '
' - + '' - + '
' - + '
' - + '
' - + '
' - + '
' - + '

Overview

' - + '

' - + 'Ad leggings keytar, brunch id art party dolor labore.' - + '

' - + '
' - + '
' - + '

Detail

' - + '

' - + 'Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard.' - + '

' - + '
' - + '
' - + '
' - , $section = $(sectionHTML).appendTo("#qunit-fixture") - , $scrollSpy = $section - .show() - .find("#scrollspy-example") - .scrollspy({target: "#ss-target"}) + test('should only switch active class on current target', function () { + var sectionHTML = '
' + + '
' + + '
' + + '
' + + '' + + '
' + + '
' + + '
' + + '
' + + '
' + + '

Overview

' + + '

' + + 'Ad leggings keytar, brunch id art party dolor labore.' + + '

' + + '
' + + '
' + + '

Detail

' + + '

' + + 'Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard.' + + '

' + + '
' + + '
' + + '
', + $section = $(sectionHTML).appendTo('#qunit-fixture'), + $scrollSpy = $section + .show() + .find('#scrollspy-example') + .scrollspy({target: '#ss-target'}) - $scrollSpy.scrollTop(350); - ok($section.hasClass("active"), "Active class still on root node") - }) + $scrollSpy.scrollTop(350); + ok($section.hasClass('active'), 'Active class still on root node') + }) })