UNPKG

modernizr

Version:

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

13 lines (12 loc) 376 B
define(['createElement'], function(createElement) { /** * since we have a fairly large number of input tests that don't mutate the input * we create a single element that can be shared with all of those tests for a * minor perf boost * * @access private * @returns {HTMLInputElement} */ var inputElem = createElement('input'); return inputElem; });