arturadib/agility — Issue #53: can't put empty string on a 'div' with 'data-bind'
Author: quartzo
Created: 2011-10-13 18:39:35+00:00
State: open

This code doesn't change the DOM:

```javascript
// Bind model to element's HTML content
var message = $$({txt:"I'm text from a model"}, '

');
$$.document.append(message);
message.model.set({'txt':''});
```
Simplest corretion:

```diff
@@ -582,7 +582,7 @@
if (self.model.get(bindData.key)) {
$node.text(self.model.get(bindData.key).toString());
} else {
- $node.text( null );
+ $node.text('');
}
});
}
```