src/scripts/story-steps.js
function(current) {
                    if (typeof current.steps === 'object' && typeof current.steps.map === 'function' && current.steps.length > 0) {
                      return current.steps;
                    }
                    var steps = null;
                    if (typeof current.render === 'function') {
                      try {
                        steps = findScreenerStepsInRender(current.render(function(fn) {
                          return fn;
                        }));
                      } catch (ex) {
                        steps = null;
                      }
                    }
                    if (typeof current.components === 'object' && typeof current.components.story === 'object' && typeof current.components.story.render === 'function') {
                      try {
                        steps = findScreenerStepsInRender(current.components.story.render(function(fn) {
                          return fn;
                        }, {}));
                      } catch (ex) {
                        steps = null;
                      }
                    }
                    return steps;
                  }
function(current) {
                    if (typeof current.steps === 'object' && typeof current.steps.map === 'function' && current.steps.length > 0) {
                      return current.steps;
                    }
                    var steps = null;
                    if (typeof current.render === 'function') {
                      try {
                        steps = findScreenerStepsInRender(current.render(function(fn) {
                          return fn;
                        }));
                      } catch (ex) {
                        steps = null;
                      }
                    }
                    if (typeof current.components === 'object' && typeof current.components.story === 'object' && typeof current.components.story.render === 'function') {
                      try {
                        steps = findScreenerStepsInRender(current.components.story.render(function(fn) {
                          return fn;
                        }, {}));
                      } catch (ex) {
                        steps = null;
                      }
                    }
                    return steps;
                  }
function ( current ) { if ( typeof current . steps === 'object' && typeof current . steps . map === 'function' && current . steps . length > 0 ) { return current . steps ; } var steps = null ; if ( typeof current . render === 'function' ) { try { steps = findScreenerStepsInRender ( current . render ( function ( fn ) { return fn ; } ) ) ; } catch ( ex ) { steps = null ; } } if ( typeof current . components === 'object' && typeof current . components . story === 'object' && typeof current . components . story . render === 'function' ) { try { steps = findScreenerStepsInRender ( current . components . story . render ( function ( fn ) { return fn ; } , { } ) ) ; } catch ( ex ) { steps = null ; } } return steps ; }
recursively find screener steps in render function
recursively find screener steps in render function