jQuery-Smart-Wizard
jQuery-Smart-Wizard copied to clipboard
$(target).children("ul") vs $(target).find("ul")
...
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?