mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
16 lines
342 B
TypeScript
16 lines
342 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);
|