MCPcopy
hub / github.com/angular-ui/ui-router / createTouchEvent

Function createTouchEvent

test/angular/1.7/angular-mocks.js:3693–3704  ·  view source on GitHub ↗
(element, eventType, x, y)

Source from the content-addressed store, hash-verified

3691 }
3692
3693 function createTouchEvent(element, eventType, x, y) {
3694 var evnt = new window.Event(eventType);
3695 x = x || 0;
3696 y = y || 0;
3697
3698 var touch = window.document.createTouch(window, element, Date.now(), x, y, x, y);
3699 var touches = window.document.createTouchList(touch);
3700
3701 evnt.touches = touches;
3702
3703 return evnt;
3704 }
3705
3706 function supportsEventBubblingInDetachedTree() {
3707 if ('_cached' in supportsEventBubblingInDetachedTree) {

Callers 1

angular-mocks.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected