Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (29 sloc) 0.84 kB
<html>
<head>
<script src="bundle.js"></script>
<script src="dominode.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
function ExampleReadStream() {
stream.Stream.call(this)
var me = this
var n = 10
var iv = setInterval(function () {
me.emit('data', {number: n})
if (--n === 0) {
clearInterval(iv)
me.emit('end')
}
}, 250)
}
util.inherits(ExampleReadStream, stream.Stream)
var list = dominode('.list', '<div id="number"></div>')
var readStream = new ExampleReadStream()
readStream.pipe(list)
})
</script>
</head>
<body>
<div class="list"></div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.