release/modular/ct-ui-router-extras.sticky.js
function getStickyStateStack(state) {
        var stack = [];
        if (!state) return stack;
        do {
          if (state.sticky) stack.push(state);
          state = state.parent;
        } while (state);
        stack.reverse();
        return stack;
      }
function getStickyStateStack(state) {
        var stack = [];
        if (!state) return stack;
        do {
          if (state.sticky) stack.push(state);
          state = state.parent;
        } while (state);
        stack.reverse();
        return stack;
      }
function getStickyStateStack ( state ) { var stack = [ ] ; if ( ! state ) return stack ; do { if ( state . sticky ) stack . push ( state ) ; state = state . parent ; } while ( state ) ; stack . reverse ( ) ; return stack ; }
Given a state, returns all ancestor states which are sticky. Walks up the view's state's ancestry tree and locates each ancestor state which is marked as sticky. Returns an array populated with only those ancestor sticky states.
Given a state returns all ancestor states which are sticky . Walks up the view s state s ancestry tree and locates each ancestor state which is marked as sticky . Returns an array populated with only those ancestor sticky states .