removing unneccessary browser sniffing (nothing is selectable in Method Draw)

master
Mark MacKay 2015-12-29 00:23:02 -06:00
parent 93d8a4cfd9
commit 632abd2d2e
1 changed files with 1 additions and 10 deletions

View File

@ -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; });