mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Core: Shortened data selector implementation and moved down to other core modifications.
This commit is contained in:
parent
7f2b0b0db1
commit
900d9119de
@ -9,11 +9,6 @@
|
||||
*/
|
||||
;(function($) {
|
||||
|
||||
// This adds a selector to check if data exists.
|
||||
jQuery.extend(jQuery.expr[':'], {
|
||||
data: "jQuery.data(a, m[3])"
|
||||
});
|
||||
|
||||
$.ui = {
|
||||
plugin: {
|
||||
add: function(module, option, set) {
|
||||
@ -76,6 +71,9 @@ $.ui = {
|
||||
|
||||
/** jQuery core modifications and additions **/
|
||||
|
||||
// This adds a selector to check if data exists.
|
||||
jQuery.expr[':'].data = "jQuery.data(a, m[3])";
|
||||
|
||||
var _remove = $.fn.remove;
|
||||
$.fn.remove = function() {
|
||||
$("*", this).add(this).triggerHandler("remove");
|
||||
|
Loading…
Reference in New Issue
Block a user