update benchmark to latest syntax

This commit is contained in:
Michael Rawlings 2017-01-28 20:11:31 -08:00
parent b5fec3fc19
commit b5e9cb94a8

View File

@ -1,23 +1,20 @@
<script>
module.exports = {
onInput: function(input) {
this.state = {
name: input.name,
colors: input.colors,
clickCount: 0
};
},
class {
onInput() {
this.state = {
clickCount: 0
};
}
handleButtonClick() {
this.state.clickCount++;
}
}
handleButtonClick: function() {
this.state.clickCount++;
}
};
</script>
div
h1 -- Hello ${state.name}!
h1 -- Hello ${input.name}!
div.colors
ul if(state.colors.length)
for(color in state.colors)
ul if(input.colors.length)
for(color in input.colors)
li.color style="background-color: ${color}"
-- ${color}
div else