Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

requirebin sketch

View index.js
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)
View index.js
1 2
<style type='text/css'>html, body { margin: 0; padding: 0; border: 0; }
body, html { height: 100%; width: 100%; }</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.