Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dkliemsch committed Jan 22, 2020
2 parents 7d86bb3 + 8ad414c commit c49a56f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "level51/silverstripe-payload-injector",
"version": "0.1.1",
"version": "0.1.2",
"description": "Utility for injecting JSON payload into the DOM at render time.",
"homepage": "https://github.com/level51/silverstripe-payload-injector",
"keywords": [
Expand Down
7 changes: 7 additions & 0 deletions src/PayloadInjector.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ public function stage(array $data) {
return $this;
}

/**
* Clear previously staged data
*/
public function clearStage() {
$this->payload = [];
}

/**
* @return bool
*/
Expand Down

0 comments on commit c49a56f

Please sign in to comment.