From 53320b1f97758961aec36d1498d609ea01d2eac5 Mon Sep 17 00:00:00 2001 From: MrChocolatine <47531779+MrChocolatine@users.noreply.github.com> Date: Mon, 11 Sep 2023 09:29:34 +0100 Subject: [PATCH] docs(sandbox): fix example that defines a non-function property --- docs/release-source/release/sandbox.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/release-source/release/sandbox.md b/docs/release-source/release/sandbox.md index 9c64ed8b9..a477e5df0 100644 --- a/docs/release-source/release/sandbox.md +++ b/docs/release-source/release/sandbox.md @@ -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";