Skip to content

Commit

Permalink
making sure contextMenu test can be run in the head
Browse files Browse the repository at this point in the history
swapped out document.body for document.documentElement so the test can
be run in the head tag.
  • Loading branch information
dmolsen committed Aug 25, 2012
1 parent 7d87471 commit ec2630e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature-detects/contextmenu.js
Expand Up @@ -2,7 +2,7 @@
// Demo at http://thewebrocks.com/demos/context-menu/
Modernizr.addTest(
'contextmenu',
('contextMenu' in document.body && 'HTMLMenuItemElement' in window)
('contextMenu' in document.documentElement && 'HTMLMenuItemElement' in window)
);


Expand Down

0 comments on commit ec2630e

Please sign in to comment.