mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-15 10:05:40 +02:00
al tests passing, dist rebuilt, w/typechecker
This commit is contained in:
6
js/dist/collapse.js
vendored
6
js/dist/collapse.js
vendored
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user