object in register change fixed

This commit is contained in:
Torsten Ruger
2015-10-04 22:39:02 +03:00
parent d23a9846e3
commit 36e3a8d4cc
3 changed files with 14 additions and 5 deletions

View File

@ -21,7 +21,7 @@ class ListView < ElementView
# replace the child at index with the given one (second arg)
# The child must be an ElementView , which will be rendered and
# the old node will be replaces in the live dom
# the old node will be replaced in the live dom
def replace_at index , with
old = @elements[index]
@children[index] = with