Open apapacy opened 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?
These conditions look too strict. Does not it make sense to replace them with others?
Or can I pass the list in the configuration parameter?