Skip to content

Add the 'origin' parameter to callback function of find(), child(), parent() methods #1065

@romanresh

Description

@romanresh

Are you requesting a feature or reporting a bug?

feature

What is the current behavior?

It's impossible to get properties of parent element inside callback function of the find(), child(), parent() methods.

What is the expected behavior?

var mainElement = Selector("#main-element-id");
var childByIdPostfix = mainElement.find((node, index, origin) => node.id === origin.id + "_idpostfix");

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions