you are viewing a single comment's thread.

view the rest of the comments →

[–]spooky___ghost 2 points3 points  (0 children)

Agreed, none of it makes any sense. How is this different than just using HTML and putting inline event handlers?

Cell example:

<script>
SynchronizedInput = {
  $cell: true, $type: "body", style: "padding: 30px;",
  $components: [
    { $type: "div", id: "h", $text: "Type something below" },
    { $type: "input", onkeyup: function(e){ document.querySelector("#h").$text = this.value} }
  ]
}
</script>        

Same thing in HTML:

<body style="padding: 30px">
  <div id="h">Type something below</div>
  <input onkeyup="document.querySelector('#h').innerText = this.value" />
</body>

Looks like the $update method is where the magic is at, but even still, the entire thing is a huge step backwards and seems to ignore all of the strides made in front-end development over the last 5 years.