Core: Converted :data selector to a function.

This commit is contained in:
Scott González 2008-09-05 02:47:18 +00:00
parent f6008ca694
commit d5bea560de

View File

@ -18,7 +18,9 @@ $.fn.remove = function() {
}; };
// This adds a selector to check if data exists. // 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 = { $.keyCode = {
BACKSPACE: 8, BACKSPACE: 8,