public
Last active

requirebin sketch

  • Download Gist
index.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
var o = require('observable')
var h = require('hyperscript')
 
var field = h('input', {'type': 'text'})
value = o.input(field)
 
value(function(v){
console.log('changed to', v)
})
 
setTimeout(function(){
value('hello') // doesn't fire handler at line 7
}, 1000)
 
document.body.appendChild(field)
page-head.html
HTML
1 2
<style type='text/css'>html, body { margin: 0; padding: 0; border: 0; }
body, html { height: 100%; width: 100%; }</style>
requirebin.md
Markdown

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.