UNPKG

modernizr

Version:

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

7 lines (6 loc) 321 B
define(['ModernizrProto', 'isEventSupported'], function( ModernizrProto, isEventSupported ) { // Modernizr.hasEvent() detects support for a given event, with an optional element to test on // Modernizr.hasEvent('gesturestart', elem) var hasEvent = ModernizrProto.hasEvent = isEventSupported; return hasEvent; });