Skip to content

Commit

Permalink
docs(sandbox): fix example that defines a non-function property
Browse files Browse the repository at this point in the history
  • Loading branch information
MrChocolatine authored Sep 11, 2023
1 parent baa1aee commit 53320b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/release-source/release/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ Defines the `property` on `object` with the value `value`. Attempts to define an
```js
var myObject = {};

sandbox.define(myObject, "myValue", function () {
return "blackberry";
});
sandbox.define(myObject, "myValue", "blackberry");

sandbox.define(myObject, "myMethod", function () {
return "strawberry";
Expand Down

0 comments on commit 53320b1

Please sign in to comment.