From b386d29fcf970fbcb3a75723702b27f4c1d846b9 Mon Sep 17 00:00:00 2001 From: Chris Lorenzo Date: Mon, 26 Sep 2022 13:51:14 -0400 Subject: [PATCH] Update Patching.md Fix missing brackets --- docs/Templates/Patching.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Templates/Patching.md b/docs/Templates/Patching.md index a6fbba27..6e15320f 100644 --- a/docs/Templates/Patching.md +++ b/docs/Templates/Patching.md @@ -36,7 +36,7 @@ You can also call a patch *directly* on a sub element: ``` -this.tag("Parent").patch( +this.tag("Parent").patch({ x: 150, alpha: 0.5, Child: { x: 100, y: 100 @@ -61,7 +61,7 @@ You can remove an element by specifying 'undefined' instead of the settings obje ``` -this.tag("Parent").patch( +this.tag("Parent").patch({ x: 150, alpha: 0.5, Child: undefined }); @@ -107,4 +107,4 @@ options.keys = { }; const App = new BasicUsageExample(options); document.body.appendChild(App.stage.getCanvas()); -``` \ No newline at end of file +```