X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=43033a7be0387a0cda298aee40fcdebfb367ff25;hb=5e497300aaaa61e1108d50ff9264ac79cbfe3f83;hp=c24bda05ba2e5576c7a7bf0e51a50539be1fe323;hpb=d1a4077fa8fa710b474ae052ff9d1d7a1ddc5779;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index c24bda0..43033a7 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -281,7 +281,7 @@ test("clone()", function() { test("filter()", function() { isSet( $("input").filter(":checked").get(), q("radio2", "check1"), "filter(String)" ); isSet( $("p").filter(["#ap", "#sndp"]).get(), q("ap", "sndp"), "filter(Array<String>)" ); - isSet( $("p").filter(function(el) { return !$("a", el).length }).get(), q("sndp", "first"), "filter(Function)" ); + isSet( $("p").filter(function() { return !$("a", this).length }).get(), q("sndp", "first"), "filter(Function)" ); }); test("not(String)", function() {