Skip to content

Commit

Permalink
Derpo
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 19, 2024
1 parent e64c0f0 commit c537a78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/componentset.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,15 @@ function __construct(Contact $viewer, ...$args) {
$this->reset_context();
}

/** @return $this */
function reset_context() {
assert(empty($this->_ctxstack) && empty($this->_ctx->cleanup));
$this->root = null;
$this->_raw = [];
$this->_callables = ["Conf" => $this->conf];
$this->_next_section_class = $this->_section_class;
$this->_section_closer = null;
return $this;
}

/** @return Contact */
Expand Down

0 comments on commit c537a78

Please sign in to comment.