mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed the stupid parent() bug.
This commit is contained in:
parent
f96c860bbd
commit
32548da247
2
jquery/jquery.js
vendored
2
jquery/jquery.js
vendored
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user