1
0
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:
fat
2015-05-13 14:52:46 -07:00
parent eaab1def7a
commit 6b2b0ed32f
16 changed files with 308 additions and 63 deletions

6
js/dist/collapse.js vendored
View File

@@ -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;
}