Core: Fixed data selector so it returns true/false (makes it work with Sizzle).

This commit is contained in:
Scott González 2008-12-31 04:08:49 +00:00
parent 91c37697de
commit 19fd2705f9

View File

@ -210,7 +210,7 @@ $.fn.extend({
$.extend($.expr[':'], {
data: function(a, i, m) {
return $.data(a, m[3]);
return !!$.data(a, m[3]);
},
// TODO: add support for object, area