mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
al tests passing, dist rebuilt, w/typechecker
This commit is contained in:
Vendored
+1
-1
@@ -39,7 +39,7 @@ var Carousel = (function ($) {
|
||||
interval: '(number|boolean)',
|
||||
keyboard: 'boolean',
|
||||
slide: '(boolean|string)',
|
||||
pause: 'string',
|
||||
pause: '(string|boolean)',
|
||||
wrap: 'boolean'
|
||||
};
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+3
-3
@@ -29,12 +29,12 @@ var Collapse = (function ($) {
|
||||
|
||||
var Default = {
|
||||
toggle: true,
|
||||
parent: null
|
||||
parent: ''
|
||||
};
|
||||
|
||||
var DefaultType = {
|
||||
toggle: 'boolean',
|
||||
parent: '(string|null)'
|
||||
parent: 'string'
|
||||
};
|
||||
|
||||
var Event = {
|
||||
@@ -241,7 +241,7 @@ var Collapse = (function ($) {
|
||||
|
||||
value: function _getConfig(config) {
|
||||
config = $.extend({}, Default, config);
|
||||
config.toggle = !!config.toggle;
|
||||
config.toggle = !!config.toggle; // coerce string values
|
||||
Util.typeCheckConfig(NAME, config, DefaultType);
|
||||
return config;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user