Skip to content
This repository was archived by the owner on Oct 29, 2018. It is now read-only.

Commit 81f0e06

Browse files
author
Eduardo Ottaviani Aragão
committed
Updating vdom to be compatible with jails 2.2
1 parent edf2c51 commit 81f0e06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vdom/vdom.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ define(['jails'], function( jails ){
1717
updateElement( element, newnode, oldnode );
1818

1919
if( !oldnode)
20-
jails.refresh( element );
20+
jails.start( element );
2121

2222
oldnode = newnode;
2323
}
@@ -124,14 +124,14 @@ define(['jails'], function( jails ){
124124
index = index || 0;
125125
if (!oldNode) {
126126
$parent.appendChild(createElement(newNode));
127-
jails.refresh( $parent );
127+
jails.start( $parent );
128128
} else if (!newNode) {
129129
if ( index >= $parent.childNodes.length )
130130
index = $parent.childNodes.length -1;
131131
$parent.removeChild( $parent.childNodes[ index ] );
132132
} else if (changed(newNode, oldNode)) {
133133
$parent.replaceChild(createElement(newNode),$parent.childNodes[index]);
134-
jails.refresh( $parent );
134+
jails.start( $parent );
135135
} else if (newNode.type) {
136136
updateProps( $parent.childNodes[index], newNode.props, oldNode.props );
137137
var newLength = newNode.children.length;

0 commit comments

Comments
 (0)