forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtouch.js
31 lines (28 loc) · 928 Bytes
/
touch.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict';
/**
* @ngdoc module
* @name ngTouch
* @description
*
* # ngTouch
*
* The `ngTouch` module provides the touch-event based {@link ngTouch.$swipe `$swipe`} directive.
*
* <div class="alert alert-info">
* Angular 1.5.0 has **removed** the override to the `ngClick` directive that eliminates the 300ms delay
* after a tap on mobile browsers. It was removed because the implementation was unreliable, and because
* the 300ms delay is on its way out on modern mobile browsers.
* If you need this behavior, consider using [FastClick](https://github.com/ftlabs/fastclick) or
* [Tappy!](https://github.com/filamentgroup/tappy/)
* </div>
*
*
* <div doc-module-components="ngTouch"></div>
*
*/
// define ngTouch module
/* global -ngTouch */
var ngTouch = angular.module('ngTouch', []);
function nodeName_(element) {
return angular.lowercase(element.nodeName || (element[0] && element[0].nodeName));
}