From 632abd2d2e1db2046d31db89cca30f186eceefa1 Mon Sep 17 00:00:00 2001 From: Mark MacKay Date: Tue, 29 Dec 2015 00:23:02 -0600 Subject: [PATCH] removing unneccessary browser sniffing (nothing is selectable in Method Draw) --- editor/lib/contextmenu/jquery.contextMenu.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/editor/lib/contextmenu/jquery.contextMenu.js b/editor/lib/contextmenu/jquery.contextMenu.js index 46be3ad..95c8d2b 100755 --- a/editor/lib/contextmenu/jquery.contextMenu.js +++ b/editor/lib/contextmenu/jquery.contextMenu.js @@ -138,16 +138,7 @@ if(jQuery)( function() { }, 0); } - - - // Disable text selection - if( $.browser.mozilla ) { - $('#' + o.menu).each( function() { $(this).css({ 'MozUserSelect' : 'none' }); }); - } else if( $.browser.msie ) { - $('#' + o.menu).each( function() { $(this).bind('selectstart.disableTextSelect', function() { return false; }); }); - } else { - $('#' + o.menu).each(function() { $(this).bind('mousedown.disableTextSelect', function() { return false; }); }); - } + // Disable browser context menu (requires both selectors to work in IE/Safari + FF/Chrome) $(el).add($('UL.contextMenu')).bind('contextmenu', function() { return false; });