Closed quartzo closed 13 years ago
This code doesn't change the DOM:
// Bind model to element's HTML content var message = $$({txt:"I'm text from a model"}, '<div data-bind="txt"/>'); $$.document.append(message); message.model.set({'txt':''});
Simplest correction:
@@ -582,7 +582,7 @@ if (self.model.get(bindData.key)) { $node.text(self.model.get(bindData.key).toString()); } else { - $node.text( null ); + $node.text(''); } }); }
Thanks @quartzo. Submitted the fix in #54
This code doesn't change the DOM:
Simplest correction: