diff options
author | Pierre Vanduynslager <pierre.denis.vanduynslager@gmail.com> | 2017-03-29 00:43:16 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2017-03-29 00:43:15 +0300 |
commit | 48c5efa4c3c439d8720b8475ec3e372c6974a12a (patch) | |
tree | 927c262f444f4aaeb0f598cf35ab7b1b385ae76a /js/tests/visual/collapse.html | |
parent | ce0e2f8e76dade4b6ec9d6eb541c6988739f0653 (diff) |
Fix JS components console error "Error: <Component> is transitioning"
Diffstat (limited to 'js/tests/visual/collapse.html')
-rw-r--r-- | js/tests/visual/collapse.html | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/js/tests/visual/collapse.html b/js/tests/visual/collapse.html index 3eb585b7ba..fe45c18042 100644 --- a/js/tests/visual/collapse.html +++ b/js/tests/visual/collapse.html @@ -60,30 +60,5 @@ <script src="../../../docs/assets/js/vendor/jquery-slim.min.js"></script> <script src="../../dist/util.js"></script> <script src="../../dist/collapse.js"></script> - <script> - // JavaScript Test - $(function () { - testCollapseTransitionError() - }); - - // Should throw an error because carousel is in transition - function testCollapseTransitionError() { - var err = false - $('#collapseOne').on('hidden.bs.collapse', function (e) { - $(this).off('hidden.bs.collapse') - if (!err) { - alert('No error thrown for : testCollapseTransitionError') - } - }) - - try { - $('#collapseOne').collapse('hide').collapse('show') - } - catch (e) { - err = true - console.error(e.message) - } - } - </script> </body> </html> |