Skip to content

Commit 67a8cea

Browse files
docs(sandbox): fix example that defines a non-function property (#2543)
1 parent baa1aee commit 67a8cea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/release-source/release/sandbox.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ Defines the `property` on `object` with the value `value`. Attempts to define an
190190
```js
191191
var myObject = {};
192192

193-
sandbox.define(myObject, "myValue", function () {
194-
return "blackberry";
195-
});
193+
sandbox.define(myObject, "myValue", "blackberry");
196194

197195
sandbox.define(myObject, "myMethod", function () {
198196
return "strawberry";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy