diff --git a/README.md b/README.md index a1f224b..86265c6 100644 --- a/README.md +++ b/README.md @@ -424,14 +424,14 @@ See [example](http://troolee.github.io/gridstack.js/demo/knockout.html). **Notes:** It's very important to exclude training spaces after widget template: ``` - template: - [ - '
', - '
', - ' ....', - '
', // <-- NO SPACE **AFTER**
- ' ' // <-- NO SPACE **BEFORE** - ].join('') // <-- JOIN WITH **EMPTY** STRING +template: + [ + '
', + '
', + ' ....', + '
', // <-- NO SPACE **AFTER**
+ ' ' // <-- NO SPACE **BEFORE** + ].join('') // <-- JOIN WITH **EMPTY** STRING ``` Otherwise `addDisposeCallback` won't work.