diff --git a/lib/client/menu/jquery.contextMenu.js b/lib/client/menu/jquery.contextMenu.js index 0ea7c70d..2b4da541 100644 --- a/lib/client/menu/jquery.contextMenu.js +++ b/lib/client/menu/jquery.contextMenu.js @@ -286,8 +286,7 @@ var // currently active contextMenu trigger mouseenter: function(e) { var $this = $(this), $related = $(e.relatedTarget), - //$document = $(document); - $document = $('li'); + $document = $(document); // abort if we're coming from a menu if ($related.is('.context-menu-list') || $related.closest('.context-menu-list').length) { @@ -1205,8 +1204,7 @@ $.contextMenu = function(operation, options) { // merge with default options var o = $.extend(true, {}, defaults, options || {}), - //$document = $(document); - $document = $('li'); + $document = $(document); switch (operation) { case 'create':