Skip to content

Commit 8cdc560

Browse files
committed
Merge branch 'master' of github.com:konvajs/site into master
2 parents b7dd842 + c834647 commit 8cdc560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/docs/data_and_serialization/Best_Practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var state = [{x: 10, y: 10}, { x: 160, y: 1041}]
1717
```
1818

1919
Now when you have that information, you need to have a function, that can create the whole canvas structure.
20-
If you want to update your canvas, for instance, you want to create a new ball, you don't need to create a new canvas node directly (like creating new instance of `Konva.Cirlce`), you just need to push a new object into a state and update (or recreate) canvas.
20+
If you want to update your canvas, for instance, you want to create a new ball, you don't need to create a new canvas node directly (like creating new instance of `Konva.Circle`), you just need to push a new object into a state and update (or recreate) canvas.
2121

2222
In that case you don't need to care about image loading, filters, event listeners, etc in saving/loading phases. Because you do all these actions in your `create` or `update` functions.
2323

0 commit comments

Comments
 (0)