jQuery-Smart-Wizard icon indicating copy to clipboard operation
jQuery-Smart-Wizard copied to clipboard

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

Open apapacy opened this issue 6 years ago • 0 comments

...
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?

apapacy avatar Apr 13 '18 15:04 apapacy