diff --git a/js/tests/unit/popover.js b/js/tests/unit/popover.js index 4b8b2a96bf..13ba93862e 100644 --- a/js/tests/unit/popover.js +++ b/js/tests/unit/popover.js @@ -221,10 +221,10 @@ $(function () { test('should detach popover content rather than removing it so that event handlers are left intact', function () { var $content = $('
').appendTo('#qunit-fixture') - var handlerCalled = false; + var handlerCalled = false $('.content-with-handler .btn').click(function () { handlerCalled = true - }); + }) var $div = $('') .appendTo('#qunit-fixture') @@ -233,7 +233,7 @@ $(function () { trigger: 'manual', container: 'body', content: function () { - return $content; + return $content } })