Skip to content

Commit ffe1430

Browse files
authored
Merge pull request #3 from ashutoshdas96/fix/customVDOM
Fix/custom vdom
2 parents 106cd10 + 63459c1 commit ffe1430

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Halogen/VDom/Util.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ exports.createElement = function (ns, name, doc) {
131131

132132
exports.insertChildIx = function (type, i, a, b) {
133133
return function () {
134-
var n = (b.children[i]) || {props: {id: "-1"}};
134+
var n = (b.children[i]) || {__ref: {__id: "-1"}};
135135

136-
if (n.props.id !== a.props.id) {
136+
if (n.__ref.__id !== a.__ref.__id) {
137137
if (type == "patch") {
138138
window.addChild(a, b, i);
139139
}
@@ -148,9 +148,9 @@ exports.removeChild = function (a, b) {
148148
return function () {
149149
var childIndex = -1;
150150

151-
if (b && a.parentNode.props.id === b.props.id) {
151+
if (b && a.parentNode.__ref.__id === b.__ref.__id) {
152152
for (var i=0; i<b.children.length; i++) {
153-
if (b.children[i].props.id == a.props.id) {
153+
if (b.children[i].__ref.__id == a.__ref.__id) {
154154
childIndex = i;
155155
}
156156
}

0 commit comments

Comments
 (0)