Matt-Esch/vtree — pull request #15 by ZauberNerd (2014-10-05 16:26:19+00:00)
Title: use fresh array/object for children and properties in VNode to allow to alter them later

In the current implementation of VNode it is not possible to alter children at a later stage because the noChildren array becomes a shared variable between all VNode instances.
When creating a new children array inside the VNode constructor function they are instance variable and not shared.

The following code creates circular references in the current VNode implementation:
```javascript
var root = new VNode('div', {});
root.children.push(new VNode('span', {}));
```
There are two possible workarounds:
* this pull request
* calling the VNode constructor and providing an empty array as third argument per default:
```javascript
var root = new VNode('div', {}, []);
root.children.push(new VNode('span', {}));
```