-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core: Movie uniqueId into its own module and deprecate core module
uniqueId was the last thing in the core module, and it is now just a helper which require all the modules it used to contain. Closes #9647
- Loading branch information
Showing
9 changed files
with
82 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/*! | ||
* jQuery UI Unique ID @VERSION | ||
* 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 ) { | ||
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( { | ||
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" ); | ||
} | ||
} ); | ||
} | ||
} ); | ||
|
||
} ) ); |