From d5bea560de6c3046b859440e41d0f6a4b4603182 Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 5 Sep 2008 02:47:18 +0000 Subject: Core: Converted :data selector to a function. --- ui/ui.core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/ui.core.js b/ui/ui.core.js index 22597bf9d..7165ff91a 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -18,7 +18,9 @@ $.fn.remove = function() { }; // This adds a selector to check if data exists. -$.expr[':'].data = "jQuery.data(a, m[3])"; +$.expr[':'].data = function(a, i, m) { + return $.data(a, m[3]); +}; $.keyCode = { BACKSPACE: 8, -- cgit v1.2.3