mstratman / jQuery-Smart-Wizard

flexible jQuery plug-in that gives wizard like interface
http://mstratman.github.com/jQuery-Smart-Wizard/
303 stars 164 forks source link

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

Open apapacy opened 6 years ago

apapacy commented 6 years ago
...
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?