docs: function factory() {
        var sequence = new ctor();
  
        // Every sequence needs a reference to its parent in order to work.
        sequence.parent = this;
  
        // If a custom init function was supplied, call it now.
        if (sequence.init) {
          sequence.init.apply(sequence, arguments);
        }
  
        return sequence;
      }