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 2, 2021
1 parent 703ec16 commit 8a4379c
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 8a4379c

Please sign in to comment.