aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/dropdown.js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-04-03 18:13:16 -0700
committerChris Rebert <[email protected]>2014-04-03 18:13:16 -0700
commit5ef634dab9bb39b9dc5beb10a568a05952a519ff (patch)
treef22d9217f6c1ad38c9e44bd5d3dba8a36c479f69 /js/tests/unit/dropdown.js
parentf6d1a733f58f76864a137fa1d26db358dc2e9460 (diff)
downloadbootstrap-5ef634dab9bb39b9dc5beb10a568a05952a519ff.tar.xz
bootstrap-5ef634dab9bb39b9dc5beb10a568a05952a519ff.zip
replace $.bind() with $.on() in unit tests; per #13272
Diffstat (limited to 'js/tests/unit/dropdown.js')
-rw-r--r--js/tests/unit/dropdown.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js
index 8597426cd..2d2e7c51d 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()
})