code: function (item, state) {
                  state.count = 0;
                  state.sub = {};
                  item.reset(state.sub);
              }
docs: Reset for the provided item
  
  @param {PatternItem} item
  @param {Object} state
  @private