UNPKG

modernizr

Version:

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

10 lines (9 loc) 402 B
define(['ModernizrProto', 'testProps'], function( ModernizrProto, testProps ) { // Modernizr.testProp() investigates whether a given style property is recognized // Note that the property names must be provided in the camelCase variant. // Modernizr.testProp('pointerEvents') var testProp = ModernizrProto.testProp = function( prop ) { return testProps([prop]); }; return testProp; });