Sha256: f5d5c0323be0a106bfd71b00af88f914a4ece22311541139974c24c5f4232de0

Contents?: true

Size: 1.03 KB

Versions: 23

Compression:

Stored size: 1.03 KB

Contents

/*!
 * jQuery UI Disable Selection 1.12.0
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */

//>>label: disableSelection
//>>group: Core
//>>description: Disable selection of text content within the set of matched elements.
//>>docs: http://api.jqueryui.com/disableSelection/

// This file is deprecated
( function( factory ) {
	if ( typeof define === "function" && define.amd ) {

		// AMD. Register as an anonymous module.
		define( [ "jquery", "./version" ], factory );
	} else {

		// Browser globals
		factory( jQuery );
	}
} ( function( $ ) {

return $.fn.extend( {
	disableSelection: ( function() {
		var eventType = "onselectstart" in document.createElement( "div" ) ?
			"selectstart" :
			"mousedown";

		return function() {
			return this.on( eventType + ".ui-disableSelection", function( event ) {
				event.preventDefault();
			} );
		};
	} )(),

	enableSelection: function() {
		return this.off( ".ui-disableSelection" );
	}
} );

} ) );

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-3.1.6 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.1.5 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.1.3 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.1.2 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.11 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.1.1 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.10 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.1.0 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.9 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.8 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.7 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-2.0.28 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.6 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-2.0.27 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.4 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.3 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.2 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.1 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-3.0.0 app/assets/bower_components/jquery-ui/ui/disable-selection.js
trusty-cms-2.0.26 app/assets/bower_components/jquery-ui/ui/disable-selection.js