Rivets.js if binding update bug
Deep bindings within rv-if statement are not updated when deep objects replaced.
by dswitzer
HTML
<script src="https://rawgit.com/mikeric/rivets/master/dist/rivets.bundled.min.js"></script>
<body>
<div rv-if="foo">
{ foo.bar }
</div>
{ foo.bar }
</body>
JavaScript
var model = {
foo: {
bar: 'original'
}
};
var view = rivets.bind(document, model);
model.foo = {
bar: 'updated'
};
//view.update(model);