1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-03 02:13:01 +02:00

fix(event-handler): remove polyfill and move it to index

This commit is contained in:
Johann-S
2018-06-11 21:44:21 +02:00
committed by XhmikosR
parent fe580a8e5a
commit b4a3b00ac8
2 changed files with 17 additions and 14 deletions

View File

@@ -307,18 +307,4 @@ const EventHandler = (() => {
}
})()
// focusin and focusout polyfill
if (Polyfill.focusIn) {
(() => {
function listenerFocus(event) {
EventHandler.trigger(event.target, 'focusin')
}
function listenerBlur(event) {
EventHandler.trigger(event.target, 'focusout')
}
EventHandler.on(document, 'focus', 'input', listenerFocus)
EventHandler.on(document, 'blur', 'input', listenerBlur)
})()
}
export default EventHandler