aboutsummaryrefslogtreecommitdiff
path: root/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-10-09 21:03:43 -0700
committerChris Rebert <[email protected]>2015-10-09 21:03:57 -0700
commitb74536fa8cd5081c59ecd4c63728a7eba00efa2f (patch)
treed3a215ac8287d5775ae098ac42016dfb051f1df9 /dist/js/bootstrap.js
parentc989fcc857fb2318d5d62e53178cc0b223d4d708 (diff)
downloadbootstrap-b74536fa8cd5081c59ecd4c63728a7eba00efa2f.tar.xz
bootstrap-b74536fa8cd5081c59ecd4c63728a7eba00efa2f.zip
grunt dist
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r--dist/js/bootstrap.js26
1 files changed, 25 insertions, 1 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js
index 42ea8e748..b3288b2b3 100644
--- a/dist/js/bootstrap.js
+++ b/dist/js/bootstrap.js
@@ -918,7 +918,10 @@ var Carousel = (function ($) {
if (typeof config === 'number') {
data.to(config);
- } else if (action) {
+ } else if (typeof action === 'string') {
+ if (data[action] === undefined) {
+ throw new Error('No method named "' + action + '"');
+ }
data[action]();
} else if (_config.interval) {
data.pause();
@@ -1306,6 +1309,9 @@ var Collapse = (function ($) {
}
if (typeof config === 'string') {
+ if (data[config] === undefined) {
+ throw new Error('No method named "' + config + '"');
+ }
data[config]();
}
});
@@ -1496,6 +1502,9 @@ var Dropdown = (function ($) {
}
if (typeof config === 'string') {
+ if (data[config] === undefined) {
+ throw new Error('No method named "' + config + '"');
+ }
data[config].call(this);
}
});
@@ -2093,6 +2102,9 @@ var Modal = (function ($) {
}
if (typeof config === 'string') {
+ if (data[config] === undefined) {
+ throw new Error('No method named "' + config + '"');
+ }
data[config](relatedTarget);
} else if (_config.show) {
data.show(relatedTarget);
@@ -2429,6 +2441,9 @@ var ScrollSpy = (function ($) {
}
if (typeof config === 'string') {
+ if (data[config] === undefined) {
+ throw new Error('No method named "' + config + '"');
+ }
data[config]();
}
});
@@ -2692,6 +2707,9 @@ var Tab = (function ($) {
}
if (typeof config === 'string') {
+ if (data[config] === undefined) {
+ throw new Error('No method named "' + config + '"');
+ }
data[config]();
}
});
@@ -3283,6 +3301,9 @@ var Tooltip = (function ($) {
}
if (typeof config === 'string') {
+ if (data[config] === undefined) {
+ throw new Error('No method named "' + config + '"');
+ }
data[config]();
}
});
@@ -3468,6 +3489,9 @@ var Popover = (function ($) {
}
if (typeof config === 'string') {
+ if (data[config] === undefined) {
+ throw new Error('No method named "' + config + '"');
+ }
data[config]();
}
});