From c7181e5f8b5a196b158e8abc0c46b275d577b4a7 Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Thu, 26 Feb 2015 21:18:31 -0800 Subject: [PATCH] knockout same update --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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.