mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
323 B
TypeScript
15 lines
323 B
TypeScript
|
|
|
|
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); |