Skip to content

Commit 357ce5c

Browse files
committed
rake update[v4-dev]
1 parent 6e58d5c commit 357ce5c

13 files changed

Lines changed: 59 additions & 11 deletions

File tree

assets/javascripts/bootstrap.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,10 @@ var Carousel = (function ($) {
918918

919919
if (typeof config === 'number') {
920920
data.to(config);
921-
} else if (action) {
921+
} else if (typeof action === 'string') {
922+
if (data[action] === undefined) {
923+
throw new Error('No method named "' + action + '"');
924+
}
922925
data[action]();
923926
} else if (_config.interval) {
924927
data.pause();
@@ -1306,6 +1309,9 @@ var Collapse = (function ($) {
13061309
}
13071310

13081311
if (typeof config === 'string') {
1312+
if (data[config] === undefined) {
1313+
throw new Error('No method named "' + config + '"');
1314+
}
13091315
data[config]();
13101316
}
13111317
});
@@ -1496,6 +1502,9 @@ var Dropdown = (function ($) {
14961502
}
14971503

14981504
if (typeof config === 'string') {
1505+
if (data[config] === undefined) {
1506+
throw new Error('No method named "' + config + '"');
1507+
}
14991508
data[config].call(this);
15001509
}
15011510
});
@@ -2093,6 +2102,9 @@ var Modal = (function ($) {
20932102
}
20942103

20952104
if (typeof config === 'string') {
2105+
if (data[config] === undefined) {
2106+
throw new Error('No method named "' + config + '"');
2107+
}
20962108
data[config](relatedTarget);
20972109
} else if (_config.show) {
20982110
data.show(relatedTarget);
@@ -2429,6 +2441,9 @@ var ScrollSpy = (function ($) {
24292441
}
24302442

24312443
if (typeof config === 'string') {
2444+
if (data[config] === undefined) {
2445+
throw new Error('No method named "' + config + '"');
2446+
}
24322447
data[config]();
24332448
}
24342449
});
@@ -2692,6 +2707,9 @@ var Tab = (function ($) {
26922707
}
26932708

26942709
if (typeof config === 'string') {
2710+
if (data[config] === undefined) {
2711+
throw new Error('No method named "' + config + '"');
2712+
}
26952713
data[config]();
26962714
}
26972715
});
@@ -3283,6 +3301,9 @@ var Tooltip = (function ($) {
32833301
}
32843302

32853303
if (typeof config === 'string') {
3304+
if (data[config] === undefined) {
3305+
throw new Error('No method named "' + config + '"');
3306+
}
32863307
data[config]();
32873308
}
32883309
});
@@ -3468,6 +3489,9 @@ var Popover = (function ($) {
34683489
}
34693490

34703491
if (typeof config === 'string') {
3492+
if (data[config] === undefined) {
3493+
throw new Error('No method named "' + config + '"');
3494+
}
34713495
data[config]();
34723496
}
34733497
});

assets/javascripts/bootstrap.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/bootstrap/carousel.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/bootstrap/collapse.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/bootstrap/dropdown.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/bootstrap/modal.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/bootstrap/popover.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/bootstrap/scrollspy.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/bootstrap/tab.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/bootstrap/tooltip.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)