diff options
| author | fat <[email protected]> | 2013-05-16 20:19:51 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2013-05-16 20:19:51 -0700 |
| commit | 140ef2320bbb96ad90b73a884d83198706affaf9 (patch) | |
| tree | 4de562f3c4fa8d989de16ebe61fd07732109a9e5 /js/tests/unit/collapse.js | |
| parent | 5ab72f76878a85f105702a24096268fea73fba2d (diff) | |
| download | bootstrap-140ef2320bbb96ad90b73a884d83198706affaf9.tar.xz bootstrap-140ef2320bbb96ad90b73a884d83198706affaf9.zip | |
change namespace back to dot notation and someother js shizzle
Diffstat (limited to 'js/tests/unit/collapse.js')
| -rw-r--r-- | js/tests/unit/collapse.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js index 832d6d45d..dd2cee27d 100644 --- a/js/tests/unit/collapse.js +++ b/js/tests/unit/collapse.js @@ -32,12 +32,12 @@ $(function () { $.support.transition = false stop() $('<div class="collapse"/>') - .bind('bs:collapse:show', function (e) { + .on('show.bs.collapse', function (e) { e.preventDefault(); ok(true); start(); }) - .bind('bs:collapse:shown', function () { + .on('shown.bs.collapse', function () { ok(false); }) .collapse('show') @@ -47,10 +47,10 @@ $(function () { $.support.transition = false stop() $('<div class="collapse" style="height: 0px"/>') - .bind('bs:collapse:show', function () { + .on('show.bs.collapse', function () { ok(this.style.height == '0px') }) - .bind('bs:collapse:shown', function () { + .on('shown.bs.collapse', function () { ok(this.style.height == 'auto') start() }) @@ -66,7 +66,7 @@ $(function () { var collapsible = $('<div id="test1"></div>') .appendTo($('#qunit-fixture')) - .on('bs:collapse:show', function () { + .on('show.bs.collapse', function () { ok(!target.hasClass('collapsed')) start() }) @@ -83,7 +83,7 @@ $(function () { var collapsible = $('<div id="test1" class="in"></div>') .appendTo($('#qunit-fixture')) - .on('bs:collapse:hide', function () { + .on('hide.bs.collapse', function () { ok(target.hasClass('collapsed')) start() }) |
