choojs / hyperx

🏷 - tagged template string virtual dom builder
BSD 2-Clause "Simplified" License
1.01k stars 48 forks source link

Support for virtual-dom style object #3

Closed vorg closed 8 years ago

vorg commented 8 years ago

From what I understand virtual-dom expects style property as an object while in hyperx this happens:

var tree = hx`<div style=${{color:'red'}}>`
console.log(tree);
//[Log] VirtualNode {tagName: "DIV", properties: {style: "[object Object]"}...
ghost commented 8 years ago

fixed in 1.0.3 and I added this use case to the tests