diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-08-15 00:31:50 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-08-15 00:31:50 +0000 |
commit | 900d9119deba6065b28e61a0fc20ca6f823625d1 (patch) | |
tree | f94034ff71ca1b9f1f8fe7a05f76a41793521f0a /ui/ui.core.js | |
parent | 7f2b0b0db11081eb866a32e5f52a1d5d400c48d7 (diff) | |
download | jquery-ui-900d9119deba6065b28e61a0fc20ca6f823625d1.tar.gz jquery-ui-900d9119deba6065b28e61a0fc20ca6f823625d1.zip |
Core: Shortened data selector implementation and moved down to other core modifications.
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index f3d76132a..2ad091bcf 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -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"); |