Skip to content

Commit

Permalink
docs(sandbox): fix example that defines a non-function property (#2543)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrChocolatine committed Sep 11, 2023
1 parent baa1aee commit 67a8cea
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 67a8cea

Please sign in to comment.