Skip to content

Commit

Permalink
parent may fail in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
5saviahv committed Jan 3, 2021
1 parent bfa114e commit 85b3888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/traversing.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ exports.parent = function (selector) {
}
});

if (arguments.length) {
if (selector) {
set = exports.filter.call(set, selector, this);
}

Expand Down

0 comments on commit 85b3888

Please sign in to comment.