typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
15 lines (13 loc) • 380 B
text/typescript
/// <reference path="ftdomdelegate.d.ts" />
window.addEventListener('load', function() {
var delegate = new Delegate(document.body);
delegate.on('click', 'button', function(event) {
// Do some things
}
);
// Listen to all touch move
// events that reach the body
delegate.on('touchmove', function(event) {
// Do some other things
});
}, false);