Skip to content

Commit

Permalink
DOC: Post-v2.36.0 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tmedwards authored Dec 21, 2021
2 parents bac3c41 + ac630e1 commit 7d7c866
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/api/api-save.md
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ Save.onLoad.clear();

### `Save.onLoad.delete(handler)`*boolean* {#save-api-method-onload-delete}

Deletes the specified on-load handler.
Deletes the specified on-load handler, returning `true` if the handler existed or `false` if not.

#### History:

Expand Down Expand Up @@ -780,7 +780,7 @@ Save.onSave.clear();

### `Save.onSave.delete(handler)`*boolean* {#save-api-method-onsave-delete}

Deletes the specified on-save handler.
Deletes the specified on-save handler, returning `true` if the handler existed or `false` if not.

#### History:

Expand Down
20 changes: 10 additions & 10 deletions docs/api/api-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,20 +399,20 @@ Returns an array of the story metadata store's key/value pairs as `[key, value]`
#### Examples:
```
// Get the metadata store's key/value pairs.
var metadata = State.metadata.entries();

```js
// Iterate over the pairs with a `for` loop.
var metadata = State.metadata.entries();
for (var i = 0; i < metadata.length; ++i) {
var key = metadata[i][0];
var value = metadata[i][1];
/* do something */
}
```

```js
// Iterate over the pairs with `<Array>.forEach()`.
metadata.forEach(function (pair) {
State.metadata.entries().forEach(function (pair) {
var key = pair[0];
var value = pair[1];

Expand Down Expand Up @@ -478,19 +478,19 @@ Returns an array of the story metadata store's keys.

#### Examples:

```
// Get the metadata store's keys.
var metadataKeys = State.metadata.keys();

```js
// Iterate over the keys with a `for` loop.
var metadataKeys = State.metadata.keys();
for (var i = 0; i < metadataKeys.length; ++i) {
var key = metadataKeys[i];

/* do something */
}
```

```js
// Iterate over the keys with `<Array>.forEach()`.
metadataKeys.forEach(function (key) {
State.metadata.keys().forEach(function (key) {
/* do something */
});
```
Expand Down

0 comments on commit 7d7c866

Please sign in to comment.