Skip to content

$(target).children("ul") vs $(target).find("ul") #117

@apapacy

Description

@apapacy
...
this.steps        = $(target).children("ul").children("li").children("a"); // Get all anchors
...
if($this.target.children('ul').length == 0 )
...

These conditions look too strict. Does not it make sense to replace them with others?

...
this.steps        = $(target).find("ul").children("li").children("a"); // Get all anchors
...
if($this.target.find('ul').length == 0 )
...

Or can I pass the list in the configuration parameter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions