crysalead-js / dom-layer

Virtual DOM implementation.
MIT License
30 stars 1 forks source link

sometimes 'this.parent' don't exist #9

Closed ghost closed 9 years ago

ghost commented 9 years ago

@jails I tried your latest changes, but got some errors. In the renders.spec as one example it seems that sometimes the this.parent are not existing. See: renders text node inside block node.

Actually I got over 40 errors!!

ghost commented 9 years ago

@jails Try this, and have a look into the console:

  var node = h({ tagName: "span" }, ["hello"]);
         node = node.render();

For me I only see this: TypeError: this.parent is undefined

jails commented 9 years ago

Yup I forgot to run npm run dist so the build files was broken.