mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-18 07:31:04 +00:00
25 lines
593 B
JavaScript
25 lines
593 B
JavaScript
/*!
|
|
{
|
|
"name": "Context menus",
|
|
"property": "contextmenu",
|
|
"caniuse": "menu",
|
|
"notes": [{
|
|
"name": "W3C Spec",
|
|
"href": "https://www.w3.org/TR/html5/interactive-elements.html#context-menus"
|
|
}, {
|
|
"name": "thewebrocks.com Demo",
|
|
"href": "http://thewebrocks.com/demos/context-menu/"
|
|
}],
|
|
"polyfills": ["jquery-contextmenu"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for custom context menus.
|
|
*/
|
|
define(['Modernizr', 'docElement'], function(Modernizr, docElement) {
|
|
Modernizr.addTest(
|
|
'contextmenu',
|
|
('contextMenu' in docElement && 'HTMLMenuItemElement' in window)
|
|
);
|
|
});
|