removing unneccessary browser sniffing (nothing is selectable in Method Draw)
parent
93d8a4cfd9
commit
632abd2d2e
|
@ -138,16 +138,7 @@ if(jQuery)( function() {
|
||||||
}, 0);
|
}, 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)
|
// Disable browser context menu (requires both selectors to work in IE/Safari + FF/Chrome)
|
||||||
$(el).add($('UL.contextMenu')).bind('contextmenu', function() { return false; });
|
$(el).add($('UL.contextMenu')).bind('contextmenu', function() { return false; });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue