aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/modal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/modal.js')
-rw-r--r--js/tests/unit/modal.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js
index 6b2074327..281978142 100644
--- a/js/tests/unit/modal.js
+++ b/js/tests/unit/modal.js
@@ -157,16 +157,15 @@ $(function () {
test('should trigger hide event once when clicking outside of modal-content', function () {
stop()
$.support.transition = false
- var div = $('<div id="modal-test"><div class="contents"></div></div>')
+
var triggered
+ var div = $('<div id="modal-test"><div class="contents"></div></div>')
+
div
.bind('shown.bs.modal', function () {
triggered = 0
$('#modal-test').click()
})
- .one('hidden.bs.modal', function () {
- div.modal('show')
- })
.bind('hide.bs.modal', function () {
triggered += 1
ok(triggered === 1, 'modal hide triggered once')