a11y-focus-scope
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -5,2 +5,3 @@ 'use strict'; | ||
var focusin = require('focusin'); | ||
var polyfilled = false; | ||
@@ -10,3 +11,6 @@ function init(element) { | ||
// lazily polyfill focusin for firefox | ||
focusin.polyfill(); | ||
if (!polyfilled) { | ||
focusin.polyfill(); | ||
polyfilled = true; | ||
} | ||
@@ -13,0 +17,0 @@ function focus() { |
{ | ||
"name": "a11y-focus-scope", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Accessibility util for scoping focus to an element.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6870
138