Fixed the stupid parent() bug.

This commit is contained in:
John Resig 2006-07-05 02:03:38 +00:00
parent f96c860bbd
commit 32548da247

2
jquery/jquery.js vendored
View file

@ -271,7 +271,7 @@ jQuery.fn = jQuery.prototype = {
},
parent: function(a) {
var ret = jQuery.map(this.cur,"d.parentNode");
var ret = jQuery.map(this.cur,"a.parentNode");
if ( a ) ret = jQuery.filter(a,ret).r;
return this.pushStack(ret);
},