diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js index 8597426cde..2d2e7c51db 100644 --- a/js/tests/unit/dropdown.js +++ b/js/tests/unit/dropdown.js @@ -169,10 +169,10 @@ $(function () { dropdown .parent('.dropdown') - .bind('show.bs.dropdown', function () { + .on('show.bs.dropdown', function () { ok(true, 'show was called') }) - .bind('hide.bs.dropdown', function () { + .on('hide.bs.dropdown', function () { ok(true, 'hide was called') start() }) @@ -203,10 +203,10 @@ $(function () { dropdown .parent('.dropdown') - .bind('shown.bs.dropdown', function () { + .on('shown.bs.dropdown', function () { ok(true, 'show was called') }) - .bind('hidden.bs.dropdown', function () { + .on('hidden.bs.dropdown', function () { ok(true, 'hide was called') start() }) diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index b026d18c49..34912c2e9c 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -140,13 +140,13 @@ $(function () { $.support.transition = false var div = $('