objects back on screen, not updating yet

This commit is contained in:
Torsten Ruger
2015-08-22 02:40:19 +02:00
parent 68f67eda54
commit cf1d32e520
3 changed files with 9 additions and 7 deletions

View File

@ -29,7 +29,7 @@ class ListView < ElementView
# the old node will be replaces in the live dom
def replace_at index , with
old = @elements[index]
@chilren[index] = with
@children[index] = with
rendered = with.draw
@elements[index] = rendered
old.replace_with rendered