MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / createTouchEvent

Function createTouchEvent

lib/test/angular/1.6.7/angular-mocks.js:3372–3383  ·  view source on GitHub ↗
(element, eventType, x, y)

Source from the content-addressed store, hash-verified

3370 }
3371
3372 function createTouchEvent(element, eventType, x, y) {
3373 var evnt = new window.Event(eventType);
3374 x = x || 0;
3375 y = y || 0;
3376
3377 var touch = window.document.createTouch(window, element, Date.now(), x, y, x, y);
3378 var touches = window.document.createTouchList(touch);
3379
3380 evnt.touches = touches;
3381
3382 return evnt;
3383 }
3384
3385 function supportsEventBubblingInDetachedTree() {
3386 if ('_cached' in supportsEventBubblingInDetachedTree) {

Callers 1

angular-mocks.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected