Huyi-23
1/7/2016 - 3:20 PM

disableSelection

disableSelection

$.fn.extend({
	disableSelection: function() {
		return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
			".ui-disableSelection", function( event ) {
				event.preventDefault();
			});
	},
	enableSelection: function() {
		return this.unbind( ".ui-disableSelection" );
	}
});