diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngTouch/directive/ngClick.js (renamed from src/ngMobile/directive/ngClick.js) | 6 | ||||
| -rw-r--r-- | src/ngTouch/directive/ngSwipe.js (renamed from src/ngMobile/directive/ngSwipe.js) | 6 | ||||
| -rw-r--r-- | src/ngTouch/swipe.js (renamed from src/ngMobile/swipe.js) | 10 | ||||
| -rw-r--r-- | src/ngTouch/touch.js (renamed from src/ngMobile/mobile.js) | 6 |
4 files changed, 14 insertions, 14 deletions
diff --git a/src/ngMobile/directive/ngClick.js b/src/ngTouch/directive/ngClick.js index 6df71ddb..f1d8ccaa 100644 --- a/src/ngMobile/directive/ngClick.js +++ b/src/ngTouch/directive/ngClick.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name ngMobile.directive:ngClick + * @name ngTouch.directive:ngClick * * @description * A more powerful replacement for the default ngClick designed to be used on touchscreen @@ -31,7 +31,7 @@ </doc:example> */ -ngMobile.config(['$provide', function($provide) { +ngTouch.config(['$provide', function($provide) { $provide.decorator('ngClickDirective', ['$delegate', function($delegate) { // drop the default ngClick directive $delegate.shift(); @@ -39,7 +39,7 @@ ngMobile.config(['$provide', function($provide) { }]); }]); -ngMobile.directive('ngClick', ['$parse', '$timeout', '$rootElement', +ngTouch.directive('ngClick', ['$parse', '$timeout', '$rootElement', function($parse, $timeout, $rootElement) { var TAP_DURATION = 750; // Shorter than 750ms is a tap, longer is a taphold or drag. var MOVE_TOLERANCE = 12; // 12px seems to work in most mobile browsers. diff --git a/src/ngMobile/directive/ngSwipe.js b/src/ngTouch/directive/ngSwipe.js index 42389542..e754113c 100644 --- a/src/ngMobile/directive/ngSwipe.js +++ b/src/ngTouch/directive/ngSwipe.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name ngMobile.directive:ngSwipeLeft + * @name ngTouch.directive:ngSwipeLeft * * @description * Specify custom behavior when an element is swiped to the left on a touchscreen device. @@ -29,7 +29,7 @@ /** * @ngdoc directive - * @name ngMobile.directive:ngSwipeRight + * @name ngTouch.directive:ngSwipeRight * * @description * Specify custom behavior when an element is swiped to the right on a touchscreen device. @@ -55,7 +55,7 @@ */ function makeSwipeDirective(directiveName, direction, eventName) { - ngMobile.directive(directiveName, ['$parse', '$swipe', function($parse, $swipe) { + ngTouch.directive(directiveName, ['$parse', '$swipe', function($parse, $swipe) { // The maximum vertical delta for a swipe should be less than 75px. var MAX_VERTICAL_DISTANCE = 75; // Vertical distance should not be more than a fraction of the horizontal distance. diff --git a/src/ngMobile/swipe.js b/src/ngTouch/swipe.js index 99e58eee..655043f8 100644 --- a/src/ngMobile/swipe.js +++ b/src/ngTouch/swipe.js @@ -2,13 +2,13 @@ /** * @ngdoc object - * @name ngMobile.$swipe + * @name ngTouch.$swipe * * @description * The `$swipe` service is a service that abstracts the messier details of hold-and-drag swipe * behavior, to make implementing swipe-related directives more convenient. * - * It is used by the `ngSwipeLeft` and `ngSwipeRight` directives in `ngMobile`, and by + * It is used by the `ngSwipeLeft` and `ngSwipeRight` directives in `ngTouch`, and by * `ngCarousel` in a separate component. * * # Usage @@ -17,7 +17,7 @@ * documentation for `bind` below. */ -ngMobile.factory('$swipe', [function() { +ngTouch.factory('$swipe', [function() { // The total distance in any direction before we make the call on swipe vs. scroll. var MOVE_BUFFER_RADIUS = 10; @@ -37,8 +37,8 @@ ngMobile.factory('$swipe', [function() { return { /** * @ngdoc method - * @name ngMobile.$swipe#bind - * @methodOf ngMobile.$swipe + * @name ngTouch.$swipe#bind + * @methodOf ngTouch.$swipe * * @description * The main method of `$swipe`. It takes an element to be watched for swipe motions, and an diff --git a/src/ngMobile/mobile.js b/src/ngTouch/touch.js index daa28f5b..844350aa 100644 --- a/src/ngMobile/mobile.js +++ b/src/ngTouch/touch.js @@ -2,12 +2,12 @@ /** * @ngdoc overview - * @name ngMobile + * @name ngTouch * @description * Touch events and other mobile helpers. * Based on jQuery Mobile touch event handling (jquerymobile.com) */ -// define ngMobile module -var ngMobile = angular.module('ngMobile', []); +// define ngTouch module +var ngTouch = angular.module('ngTouch', []); |
