1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-18 11:21:23 +02:00
This commit is contained in:
Heinrich Fenkart
2014-10-30 04:45:04 +01:00
parent 4b165332be
commit b8c3c5c19b
6 changed files with 8 additions and 8 deletions

View File

@@ -282,7 +282,7 @@ if (typeof jQuery === 'undefined') {
e.preventDefault()
})
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
$(e.target).closest('.btn').toggleClass('focus', e.type == 'focus')
$(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
})
}(jQuery);

File diff suppressed because one or more lines are too long