Sha256: 412ab2762f3a915d914a8daf091d5c62f517f3dcf347cd6bc984ea6c657f4b8c

Contents?: true

Size: 1007 Bytes

Versions: 12

Compression:

Stored size: 1007 Bytes

Contents

//= require jquery-ui/version

/*!
 * jQuery UI Unique ID 1.13.0
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */

//>>label: uniqueId
//>>group: Core
//>>description: Functions to generate and remove uniqueId's
//>>docs: http://api.jqueryui.com/uniqueId/

( function( factory ) {
	"use strict";

	if ( typeof define === "function" && define.amd ) {

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

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

return $.fn.extend( {
	uniqueId: ( function() {
		var uuid = 0;

		return function() {
			return this.each( function() {
				if ( !this.id ) {
					this.id = "ui-id-" + ( ++uuid );
				}
			} );
		};
	} )(),

	removeUniqueId: function() {
		return this.each( function() {
			if ( /^ui-id-\d+$/.test( this.id ) ) {
				$( this ).removeAttr( "id" );
			}
		} );
	}
} );

} );

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
alchemy_cms-7.0.16 vendor/assets/javascripts/jquery-ui/unique-id.js
alchemy_cms-7.0.15 vendor/assets/javascripts/jquery-ui/unique-id.js
alchemy_cms-7.0.14 vendor/assets/javascripts/jquery-ui/unique-id.js
alchemy_cms-7.0.13 vendor/assets/javascripts/jquery-ui/unique-id.js
alchemy_cms-7.0.12 vendor/assets/javascripts/jquery-ui/unique-id.js
jquery-ui-rails-7.0.0 app/assets/javascripts/jquery-ui/unique-id.js
alchemy_cms-7.0.11 vendor/assets/javascripts/jquery-ui/unique-id.js
alchemy_cms-7.0.10 vendor/assets/javascripts/jquery-ui/unique-id.js
alchemy_cms-7.0.9 vendor/assets/javascripts/jquery-ui/unique-id.js
alchemy_cms-7.0.8 vendor/assets/javascripts/jquery-ui/unique-id.js
alchemy_cms-7.0.7 vendor/assets/javascripts/jquery-ui/unique-id.js
alchemy_cms-7.0.6 vendor/assets/javascripts/jquery-ui/unique-id.js