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/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/collapse.js')
| -rw-r--r-- | js/collapse.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/collapse.js b/js/collapse.js index 95c91c299..4a94b1505 100644 --- a/js/collapse.js +++ b/js/collapse.js @@ -56,7 +56,7 @@ } this.$element[dimension](0) - this.transition('addClass', $.Event('bs:collapse:show'), 'bs:collapse:shown') + this.transition('addClass', $.Event('show.bs.collapse'), 'shown.bs.collapse') if ($.support.transition) this.$element[dimension](this.$element[0][scroll]) } @@ -65,7 +65,7 @@ if (this.transitioning || !this.$element.hasClass('in')) return var dimension = this.dimension() this.reset(this.$element[dimension]()) - this.transition('removeClass', $.Event('bs:collapse:hide'), 'hidden') + this.transition('removeClass', $.Event('hide.bs.collapse'), 'hidden') this.$element[dimension](0) } @@ -85,7 +85,7 @@ Collapse.prototype.transition = function (method, startEvent, completeEvent) { var that = this var complete = function () { - if (startEvent.type == 'bs:collapse:show') that.reset() + if (startEvent.type == 'show') that.reset() that.transitioning = 0 that.$element.trigger(completeEvent) } |
