From 900d9119deba6065b28e61a0fc20ca6f823625d1 Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 15 Aug 2008 00:31:50 +0000 Subject: Core: Shortened data selector implementation and moved down to other core modifications. --- ui/ui.core.js | 8 +++----- 1 file 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"); -- cgit v1.2.3