Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2016-12-02 21:13:36 +0300
committerMark Otto <markdotto@gmail.com>2016-12-02 21:13:36 +0300
commit3ec37d4a4d043ded903c807818e7894de084409f (patch)
treeaaf483f062a7f721093632df5d0d198e9830dacc /js/dist/collapse.js
parente3a569f4f6ab326d78300c6a8ab3e3766075cfd0 (diff)
grunt
Diffstat (limited to 'js/dist/collapse.js')
-rw-r--r--js/dist/collapse.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/js/dist/collapse.js b/js/dist/collapse.js
index f4a25a11ca..41c5533b5c 100644
--- a/js/dist/collapse.js
+++ b/js/dist/collapse.js
@@ -103,7 +103,11 @@ var Collapse = function ($) {
Collapse.prototype.show = function show() {
var _this = this;
- if (this._isTransitioning || $(this._element).hasClass(ClassName.ACTIVE)) {
+ if (this._isTransitioning) {
+ throw new Error('Collapse is transitioning');
+ }
+
+ if ($(this._element).hasClass(ClassName.ACTIVE)) {
return;
}
@@ -176,7 +180,11 @@ var Collapse = function ($) {
Collapse.prototype.hide = function hide() {
var _this2 = this;
- if (this._isTransitioning || !$(this._element).hasClass(ClassName.ACTIVE)) {
+ if (this._isTransitioning) {
+ throw new Error('Collapse is transitioning');
+ }
+
+ if (!$(this._element).hasClass(ClassName.ACTIVE)) {
return;
}