From 8a4379c7ffc0bd8ad71a7ad6f102b18b340efba9 Mon Sep 17 00:00:00 2001 From: 5saviahv <5saviahv@users.noreply.github.com> Date: Sat, 2 Jan 2021 15:53:13 +0200 Subject: [PATCH] parent may fail in functions --- lib/api/traversing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/traversing.js b/lib/api/traversing.js index 5db3fa1b014..bd417beac8e 100644 --- a/lib/api/traversing.js +++ b/lib/api/traversing.js @@ -86,7 +86,7 @@ exports.parent = function (selector) { } }); - if (arguments.length) { + if (selector) { set = exports.filter.call(set, selector, this); }