gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 497HTML 254C 19JavaScript 81329 Definitions

Remove reference to undefined binding

1d048529877bae4badf03c5dd5744f33e918a0dd · by Mike Pennisi · (7 years ago) · parent cc263423e · browse the tree at this commit

Semantic delta

No definition changed: this change is text, documentation or data.

1 files · +1 −1

diff --git a/docs/src/pages/docs/javascript.mdx b/docs/src/pages/docs/javascript.mdx
index 163725bdc..a2b917ac5 100644
--- a/docs/src/pages/docs/javascript.mdx
+++ b/docs/src/pages/docs/javascript.mdx
@@ -49,7 +49,7 @@ node.addChild(new Node({width: 100, height: 100}));
 node.computeLayout();
   
 // Mutate node
-node.setStyle(Style({width: 100, height: 100}))
+node.setStyle({width: 100, height: 100})
  
 // This call will return partially cached results
 node.computeLayout();