Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9cd0d1f

Browse files
committed
BREAKING CHANGE:
The `ngClick` directive from the ngTouch module has been removed, and with the also the corresponding $touchProvider and $touch service. If you have included ngTouch in your application with a version of 1.5.0 or higher, and have not changed the value of $touchProvider.ngClickOverrideEnabled()`, or injected and used the $touch service, then there are no migration steps for your code. The `ngClick` override directive had been deprecated and by default disabled since v1.5.0, because of buggy behavior in edge cases, and a general trend to avoid special touch based overrides of click events. If you still want a touch override, consider using [Fastclick](https://github.com/ftlabs/fastclick).
1 parent 015c837 commit 9cd0d1f

File tree

2 files changed

+0
-55
lines changed

2 files changed

+0
-55
lines changed

src/ngTouch/touch.js

-28
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,6 @@
2222
/* global ngTouch */
2323
var ngTouch = angular.module('ngTouch', []);
2424

25-
ngTouch.provider('$touch', $TouchProvider);
26-
2725
function nodeName_(element) {
2826
return angular.lowercase(element.nodeName || (element[0] && element[0].nodeName));
2927
}
30-
31-
/**
32-
* @ngdoc provider
33-
* @name $touchProvider
34-
*
35-
* @description
36-
* The `$touchProvider` allows configuration of the ngTouch module. It currently contains
37-
* no methods.
38-
*/
39-
$TouchProvider.$inject = [];
40-
function $TouchProvider() {
41-
42-
/**
43-
* @ngdoc service
44-
* @name $touch
45-
* @kind object
46-
*
47-
* @description
48-
* The `$touch` service currently has no contents.
49-
*/
50-
// eslint-disable-next-line no-invalid-this
51-
this.$get = function() {
52-
return {};
53-
};
54-
55-
}

test/ngTouch/touchSpec.js

-27
This file was deleted.

0 commit comments

Comments
 (0)