[
  {
    "path": ".bowerrc",
    "content": "{\n  \"directory\" : \"examples/lib\"\n}"
  },
  {
    "path": ".gitignore",
    "content": "*.sublime-project\n*.sublime-workspace\n.DS_Store\n.nodemonignore\n.sass-cache/\n.bower-*/\n.idea/\nbower_components/\nnode_modules/\nnpm-debug.log\n\nexamples/raw/angular*\nexamples/raw/hammer*\n\nexamples/browserify/angular*\nexamples/browserify/hammer*\nexamples/browserify/example*\n"
  },
  {
    "path": "LICENSE.md",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2014 Ryan S Mullins\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
  },
  {
    "path": "README.md",
    "content": "# Angular Hammer v2.2.0\n\nAn [Angular.js](https://angularjs.org/) module that enables you to bind custom behavior to [Hammer.js](http://hammerjs.github.io/) touch events. It is a heavily modified version of Ryan Mullins' [angular-hammer](https://github.com/RyanMullins/angular-hammer) module, which itself was derived from the [Angular Hammer](https://github.com/monospaced/angular-hammer) project by [Monospaced](https://github.com/monospaced).\n\nTweaks from Ryan Mullins version include an additional directive to allow setting of global presets and importing of global presets from `Hammer.defaults.presets`, and other general tidyup.\n\n## Installation\n\nInstall using [Bower](http://bower.io/).\n\n```bash\n$ bower install --save ryanmullins-angular-hammer\n```\n\nInstall using [NPM](https://www.npmjs.com/).\n\n```shell\n$ npm install --save angular-hammer\n```\n\nAdd `hmTouchEvents` to your app or module's dependencies. This module is designed to work with Angular.js v1.2.0+, and Hammer.js v2.0.0+.\n\n#### A Note on Version Naming\n\nAngular Hammer uses the semantic version naming convention `major.minor.patch` typical of most Bower projects, with one small difference. The `major` version will _only_ change when the major version of Hammer.js changes. Changes to `minor` should be thought of as possibly breaking, though typically they will be breaking changes to the API (i.e. changing the name of some directive or attribute). Changes to `patch` should be thought of as bug fixes or small feature additions that may require changing or adding HTML attribute values.\n\n#### A Note on Angular.js 2.0\n\nAt this time Angular Hammer has been tested with both Angular.js v1.2.x and v1.3.0. Angular.js v2.0 presents massive changes to the framework. Until such time as this README indicates otherwise, it should be assumed that Angular Hammer **will not** be moving forward to Angular.js v2.0. I reserve the right to change my mind once the v2.0 spec come out and I am able to assess the transition path.\n\n## Usage\n\nThe `hmTouchEvents` module provides a series of attribute [directives](https://docs.angularjs.org/guide/directive) for hooking into the standard Hammer.js events.\n\n### Standard Directives\n\nThe following list shows the Hammer event and corresponding Angular directive (format: &lt;eventName&gt; : &lt;directiveName&gt;). Events on the top level are fired every time a gesture of that type happens. The second-level events are more specific to the gesture state (i.e. direction, start/stop), but trigger events of their top level type.\n\n* pan : hmPan\n    - panstart : hmPanstart\n    - panmove : hmPanmove\n    - panend : hmPanend\n    - pancancel : hmPancancel\n    - panleft : hmPanleft\n    - panright : hmPanright\n    - panup : hmPanup\n    - pandown : hmPandown\n* pinch : hmPinch\n    - pinchstart : hmPinchstart\n    - pinchmove : hmPinchmove\n    - pinchend : hmPinchend\n    - pinchcancel : hmPinchcancel\n    - pinchin : hmPinchin\n    - pinchout : hmPinchout\n* press : hmPress\n    - pressup : HmPressup\n* rotate : hmRotate\n    - rotatestart : hmRotatestart\n    - rotatemove : hmRotatemove\n    - rotateend : hmRotateend\n    - rotatecancel : hmRotatecancel\n* swipe : hmSwipe\n    - swipeleft : hmSwipeleft\n    - swiperight : hmSwiperight\n    - swipeup : hmSwipeup\n    - swipedown : hmSwipedown\n* tap : hmTap\n* doubletap : hmDoubletap\n\nBehaviors to be executed on an event are defined as values of the attribute. This value is parsed as an [Angular expression](https://docs.angularjs.org/guide/expression). Beware, invalid Angular expressions will throw an Angular error with those terrible call stacks.\n\nExample Definition:\n\n```html\n<div hm-tap=\"onHammer\"></div>\n<div hm-tap=\"model.name = 'Ryan'\"></div>\n```\n\n### Manager Options\n\nEach element that responds to Hammer events contains it's own [manager](http://hammerjs.github.io/api/#hammer.manager), which keeps track of the various gesture [recognizers](http://hammerjs.github.io/api/#hammer.recognizer) attached to that element. Angular Hammer does not make use of the standard [Hammer() constructor](http://hammerjs.github.io/api/#hammer), instead instantiating an empty manager and adding only the required recognizers. However, if you were to add the same series of directives to an element, the default behavior would be the same as if they had been instantiated using the Hammer() constructor.\n\nThe behavior of any manager can be customized using the hmManagerOptions attribute. This attribute value should be a stringified JSON Object that has one or more of the properties listed below. If you choose to set the `cssProps` option, lease make sure that you are using the properties listed in the [Hammer Documentation](http://hammerjs.github.io/jsdoc/Hammer.defaults.cssProps.html). If you define the `preventGhosts` property, that value will be attributed to all recognizers associated with that manager.\n\nPossible Properties:\n\n```javascript\n{\n    \"cssProps\": Object\n    \"domEvents\": Boolean\n    \"enable\": Boolean\n    \"preventGhosts\": Boolean\n}\n```\n\nExample Definition:\n\n```html\n<div hm-tap=\"onHammer\" hm-manager-options='{\"enable\":true,\"preventGhosts\":true}'></div>\n```\n\n### Recognizer Options\n\n[Gesture recognizers](http://hammerjs.github.io/api/#hammer.recognizer) are responsible for linking events and handlers. Each element has a manager that maintains a list of these recognizers. Hammer defines some default behavior for each type of recognizer (see the links in the table below), but that behavior can be customized using the hmRecognizerOptions attribute. The value of the hmRecognizerOptions should be stringified JSON, either an Object or an Array of Objects.\n\nRecognizer options objects may have any of the properties listed in the table below, a checkmark in a column means that either Hammer or Angular Hammer (denoted AH) will make use of this option when instantiating the recognizer. A couple of things to be aware of:\n\n* If the type is provided, the options will only be applied to recognizers of that type. If this type does cannot be resolved to any of the six gesture types, the recognizer will not be created and the options will not be applied.\n* If no type property is specified, those options will be applied to all of the recognizers associated with that element/manager. When you are defining recognizer options, it is best to define an options object with no type before defining those with types.\n* The `event` property is stripped from recognizer options associated standard gestures as a safeguard. It can be used to define custom gestures (see below).\n* Some Hammer recognizers that accept a `direction` option. For these recognizers, use the `directions` option to specify which directions you would like to support. The value of this property should be a string of [`DIRECTION_*` values](http://hammerjs.github.io/api/#directions) separated by a `|` and containing no spaces. Angular Hammer will parse this field into the proper Hammer value, and set the `direction` option for the recognizer.\n* Setting [`preventDefault`](http://devdocs.io/dom/event.preventdefault), `preventGhosts`, or [`stopPropagation`](http://devdocs.io/dom/event.stoppropagation) will enable that behavior for all events recognized by that Recognizer, use this judiciously.\n* By default, event callbacks are run inside `scope.$apply()`. Set `invokeApply: false` to disable this behavior, just like for `$timeout`. This is useful for high-frequency events like `panmove`.\n* Defining options not supported by that recognizer type will have no effect on that recognizers behavior.\n\n| Option                  | Type    | [Pan][1] | [Pinch][2] | [Press][3] | [Rotate][4] | [Swipe][5] | [Tap][6] |\n| :---------------------- | :-----: | :------: | :--------: | :--------: | :---------: | :--------: | :------: |\n| `directions`            | String  | &#10003; |            |            |             | &#10003;   |          |\n| `event`                 | String  | &#10003; | &#10003;   | &#10003;   | &#10003;    | &#10003;   | &#10003; |\n| `interval`              | Number  |          |            |            |             |            | &#10003; |\n| `invokeApply` (AH)      | Boolean | &#10003; | &#10003;   | &#10003;   | &#10003;    | &#10003;   | &#10003; |\n| `pointers`              | Number  | &#10003; | &#10003;   | &#10003;   | &#10003;    | &#10003;   | &#10003; |\n| `posThreshold`          | Number  |          |            |            |             |            | &#10003; |\n| `preventDefault` (AH)   | Boolean | &#10003; | &#10003;   | &#10003;   | &#10003;    | &#10003;   | &#10003; |\n| `preventGhosts` (AH)    | Boolean | &#10003; | &#10003;   | &#10003;   | &#10003;    | &#10003;   | &#10003; |\n| `stopPropagation` (AH)  | Boolean | &#10003; | &#10003;   | &#10003;   | &#10003;    | &#10003;   | &#10003; |\n| `taps`                  | Number  |          |            |            |             |            | &#10003; |\n| `threshold`             | Number  | &#10003; | &#10003;   | &#10003;   | &#10003;    | &#10003;   | &#10003; |\n| `time`                  | Number  |          |            | &#10003;   |             |            | &#10003; |\n| `type` (AH)             | String  | &#10003; | &#10003;   | &#10003;   | &#10003;    | &#10003;   | &#10003; |\n| `velocity`              | Number  |          |            |            |             | &#10003;   |          |\n\n[1]:http://hammerjs.github.io/recognizer-pan/\n[2]:http://hammerjs.github.io/recognizer-pinch/\n[3]:http://hammerjs.github.io/recognizer-press/\n[4]:http://hammerjs.github.io/recognizer-rotate/\n[5]:http://hammerjs.github.io/recognizer-swipe/\n[6]:http://hammerjs.github.io/recognizer-tap/\n\nExample definition:\n\n```html\n<div hm-tap=\"onHamer\" hm-recognizer-options='{\"threshold\":200}'></div>\n<div hm-tap=\"onHamer\" hm-pan=\"onHamer\" hm-recognizer-options='[\n    {\"type\":\"tap\",\"enable\":false,},\n    {\"type\":\"pan\",\"directions\":\"DIRECTION_HORIZONTAL|DIRECTION_UP\"}\n]'></div>\n```\n\n### Custom Gesture Recognizers\n\nYou can add custom gesture recognizers using the `hmCustom` directive. Custom gestures are defined using the hmRecognizerOptions attribute. You can define a single custom gesture using an object, or a series of custom gestures using an array of objects. However, only a single handler, set as the value of the hmCustom attribute, will be triggered when any of these custom gestures are recognized.\n\nWhen defining a custom gesture, the recognizer options object must have a value for the `type` and `event` properties.\n\nThe behavior that is executed when this gesture is recognized is the value of this attribute. Currently (as of v2.1), only a single behavior handling function can be passed as the custom directive value. This decision was made to unify the use of the `hmManagerOptions` and `hmRecognizerOptions`, but may be changed in future versions to support multiple behavior handlers. The `type` property is used to determine which base type of gesture recognizer to modify. The `event` property is the name of the gesture as well as the name of the only event that Hammer will fire when it recognizes this gesture. **Do not mix custom and standard gesture recognizers attributes in a single element as the behaviors will be in conflict**.\n\nExample: Defining a Custom Gesture Recognizer\n\n```html\n<div\n    hm-custom=\"onHammer\"\n    hm-recognizer-options='[\n      {\"type\":\"pan\",\"event\":\"twoFingerPan\",\"pointers\":2,\"directions\":\"DIRECTION_ALL\"},\n      {\"type\":\"tap\",\"event\":\"dbltap\",\"pointers\":2,\"taps\":1}\n    ]'></div>\n```\n\n## Demo\n\n* [Using the default set of recognizers](http://ryanmullins.github.io/angular-hammer/examples/default)\n* [Defining a custom gesture recognizer](http://ryanmullins.github.io/angular-hammer/examples/custom).\n* [Dragging a div around on the screen](http://ryanmullins.github.io/angular-hammer/examples/dragging).\n"
  },
  {
    "path": "angular.hammer.js",
    "content": "// ---- Angular Hammer ----\n\n// Copyright (c) 2015 Ryan S Mullins <ryan@ryanmullins.org>\n// Licensed under the MIT Software License\n//\n// (fairly heavy) modifications by James Wilson <me@unbui.lt>\n//\n\n(function (angular, Hammer) {\n  'use strict';\n\n  // Checking to make sure Hammer and Angular are defined\n\n  if (typeof angular === 'undefined') {\n    throw Error(\"angular-hammer: AngularJS (angular) is undefined but is necessary.\");\n  }\n  if (typeof Hammer === 'undefined') {\n    throw Error(\"angular-hammer: HammerJS (Hammer) is undefined but is necessary.\");\n  }\n\n  /**\n   * Mapping of the gesture event names with the Angular attribute directive\n   * names. Follows the form: <directiveName>:<eventName>.\n   *\n   * @type {Array}\n   */\n  var gestureTypes = [\n    'hmCustom:custom',\n    'hmSwipe:swipe',\n    'hmSwipeleft:swipeleft',\n    'hmSwiperight:swiperight',\n    'hmSwipeup:swipeup',\n    'hmSwipedown:swipedown',\n    'hmPan:pan',\n    'hmPanstart:panstart',\n    'hmPanmove:panmove',\n    'hmPanend:panend',\n    'hmPancancel:pancancel',\n    'hmPanleft:panleft',\n    'hmPanright:panright',\n    'hmPanup:panup',\n    'hmPandown:pandown',\n    'hmPress:press',\n    'hmPressup:pressup',\n    'hmRotate:rotate',\n    'hmRotatestart:rotatestart',\n    'hmRotatemove:rotatemove',\n    'hmRotateend:rotateend',\n    'hmRotatecancel:rotatecancel',\n    'hmPinch:pinch',\n    'hmPinchstart:pinchstart',\n    'hmPinchmove:pinchmove',\n    'hmPinchend:pinchend',\n    'hmPinchcancel:pinchcancel',\n    'hmPinchin:pinchin',\n    'hmPinchout:pinchout',\n    'hmTap:tap',\n    'hmDoubletap:doubletap'\n  ];\n\n  // ---- Module Definition ----\n\n  /**\n   * @module hmTouchEvents\n   * @description Angular.js module for adding Hammer.js event listeners to HTML\n   * elements using attribute directives\n   * @requires angular\n   * @requires hammer\n   */\n  var NAME = 'hmTouchEvents';\n  var hmTouchEvents = angular.module('hmTouchEvents', []);\n\n  /**\n   * Provides a common interface for configuring global manager and recognizer\n   * options. Allows things like tap duration etc to be defaulted globally and\n   * overridden on a per-directive basis as needed.\n   *\n   * @return {Object} functions to add manager and recognizer options.\n   */\n  hmTouchEvents.provider(NAME, function(){\n\n    var self = this;\n    var defaultRecognizerOpts = false;\n    var recognizerOptsHash = {};\n    var managerOpts = {};\n\n    //\n    // In order to use the Hamme rpresets provided, we need\n    // to map the recognizer fn to some name:\n    //\n    var recognizerFnToName = {};\n    recognizerFnToName[ Hammer.Tap.toString() ] = \"tap\";\n    recognizerFnToName[ Hammer.Pan.toString() ] = \"pan\";\n    recognizerFnToName[ Hammer.Pinch.toString() ] = \"pinch\";\n    recognizerFnToName[ Hammer.Press.toString() ] = \"press\";\n    recognizerFnToName[ Hammer.Rotate.toString() ] = \"rotate\";\n    recognizerFnToName[ Hammer.Swipe.toString() ] = \"swipe\";\n\n    //\n    // normalize opts, setting its name as it should be keyed by\n    // and any must-have options. currently only doubletap is treated\n    // specially. each _name leads to a new recognizer.\n    //\n    function normalizeRecognizerOptions(opts){\n      opts = angular.copy(opts);\n\n      if(opts.event){\n\n        if(opts.event == \"doubletap\"){\n          opts.type = \"tap\";\n          if(!opts.taps) opts.taps = 2;\n          opts._name = \"doubletap\";\n        } else {\n          opts._name = false;\n        }\n\n      } else {\n        opts._name = opts.type || false;\n      }\n\n      return opts;\n    }\n    //\n    // create default opts for some eventName.\n    // again, treat doubletap specially.\n    //\n    function defaultOptionsForEvent(eventName){\n      if(eventName == \"custom\"){\n        throw Error(NAME+\"Provider: no defaults exist for custom events\");\n      }\n      var ty = getRecognizerTypeFromeventName(eventName);\n      return normalizeRecognizerOptions(\n        eventName == \"doubletap\"\n          ? {type:ty, event:\"doubletap\"}\n          : {type:ty}\n      );\n    }\n\n    //\n    // Make use of presets from Hammer.defaults.preset array\n    // in angular-hammer events.\n    //\n    self.applyHammerPresets = function(){\n      var hammerPresets = Hammer.defaults.preset;\n\n      //add every preset that, when normalized, has a _name.\n      //this precludes most custom events.\n      angular.forEach(hammerPresets, function(presetArr){\n\n        var data = presetArr[1];\n        if(!data.type) data.type = recognizerFnToName[presetArr[0]];\n        data = normalizeRecognizerOptions(data);\n        if(!data._name) return;\n        recognizerOptsHash[data._name] = data;\n      });\n    }\n\n    //\n    // Add a manager option (key/val to extend or object to set all):\n    //\n    self.addManagerOption = function(name, val){\n      if(typeof name == \"object\"){\n        angular.extend(managerOpts, name);\n      }\n      else {\n        managerOpts[name] = val;\n      }\n    }\n\n    //\n    // Add a recognizer option:\n    //\n    self.addRecognizerOption = function(val){\n      if(Array.isArray(val)){\n        for(var i = 0; i < val.length; i++) self.addRecognizerOption(val[i]);\n        return;\n      }\n      if(typeof val !== \"object\"){\n        throw Error(NAME+\"Provider: addRecognizerOption: should be object or array of objects\");\n      }\n      val = normalizeRecognizerOptions(val);\n\n      //hash by name if present, else if no event name,\n      //set as defaults.\n      if(val._name){\n        recognizerOptsHash[val.type] = val;\n      } else if(!val.event){\n        defaultRecognizerOpts = val;\n      }\n\n    }\n\n    //provide an interface to this that the hm-* directives use\n    //to extend their recognizer/manager opts.\n    self.$get = function(){\n      return {\n        extendWithDefaultManagerOpts: function(opts){\n          if(typeof opts != \"object\"){\n            opts = {};\n          } else {\n            opts = angular.copy(opts);\n          }\n          for(var name in managerOpts) {\n            if(!opts[name]) opts[name] = angular.copy(managerOpts[name]);\n          }\n          return opts;\n        },\n        extendWithDefaultRecognizerOpts: function(eventName, opts){\n          if(typeof opts !== \"object\"){\n            opts = [];\n          }\n          if(!Array.isArray(opts)){\n            opts = [opts];\n          }\n\n          //dont apply anything if this is custom event\n          //(beyond normalizing opts to an array):\n          if(eventName == \"custom\") return opts;\n\n          var recognizerType = getRecognizerTypeFromeventName(eventName);\n          var specificOpts = recognizerOptsHash[eventName] || recognizerOptsHash[recognizerType];\n\n          //get the last opt provided that matches the type or eventName\n          //that we have. normalizing removes any eventnames we dont care about\n          //(everything but doubletap at the moment).\n          var foundOpt;\n          var isExactMatch = false;\n          var defaults = angular.extend({}, defaultRecognizerOpts || {}, specificOpts || {});\n          opts.forEach(function(opt){\n\n            if(!opt.event && !opt.type){\n              return angular.extend(defaults, opt);\n            }\n            if(isExactMatch){\n              return;\n            }\n\n            //more specific wins over less specific.\n            if(opt.event == eventName){\n              foundOpt = opt;\n              isExactMatch = true;\n            } else if(!opt.event && opt.type == recognizerType){\n              foundOpt = opt;\n            }\n\n          });\n          if(!foundOpt) foundOpt = defaultOptionsForEvent(eventName);\n          else foundOpt = normalizeRecognizerOptions(foundOpt);\n\n\n          return [angular.extend(defaults, foundOpt)];\n        }\n      };\n    };\n\n  });\n\n  /**\n   * Iterates through each gesture type mapping and creates a directive for\n   * each of the\n   *\n   * @param  {String} type Mapping in the form of <directiveName>:<eventName>\n   * @return None\n   */\n  angular.forEach(gestureTypes, function (type) {\n    var directive = type.split(':'),\n        directiveName = directive[0],\n        eventName = directive[1];\n\n    hmTouchEvents.directive(directiveName, ['$parse', '$window', NAME, function ($parse, $window, defaultEvents) {\n        return {\n          restrict: 'A',\n          scope: false,\n          link: function (scope, element, attrs) {\n\n            // Check for Hammer and required functionality.\n            // error if they arent found as unexpected behaviour otherwise\n            if (!Hammer || !$window.addEventListener) {\n              throw Error(NAME+\": window.Hammer or window.addEventListener not found, can't add event \"+directiveName);\n            }\n\n            var hammer = element.data('hammer'),\n                managerOpts = defaultEvents.extendWithDefaultManagerOpts( scope.$eval(attrs.hmManagerOptions) ),\n                recognizerOpts = defaultEvents.extendWithDefaultRecognizerOpts( eventName, scope.$eval(attrs.hmRecognizerOptions) );\n\n            // Check for a manager, make one if needed and destroy it when\n            // the scope is destroyed\n            if (!hammer) {\n              hammer = new Hammer.Manager(element[0], managerOpts);\n              element.data('hammer', hammer);\n              scope.$on('$destroy', function () {\n                hammer.destroy();\n              });\n            }\n\n            // Obtain and wrap our handler function to do a couple of bits for\n            // us if options provided.\n            var handlerExpr = $parse(attrs[directiveName]).bind(null,scope);\n            var handler = function (event) {\n                  event.element = element;\n\n                  // Default invokeApply to true, overridden by recognizer option\n                  var invokeApply = true;\n\n                  var recognizer = hammer.get(getRecognizerTypeFromeventName(event.type));\n                  if (recognizer) {\n                    var opts = recognizer.options;\n                    if (opts.preventDefault) {\n                      event.preventDefault();\n                    }\n                    if (opts.stopPropagation) {\n                      event.srcEvent.stopPropagation();\n                    }\n\n                    invokeApply = angular.isUndefined(opts.invokeApply) || opts.invokeApply;\n                  }\n\n                  if (invokeApply) {\n                    scope.$apply(function(){\n                      handlerExpr({ '$event': event });\n                    });\n                  } else {\n                    handlerExpr({ '$event': event });\n                  }\n                };\n\n            // The recognizer options are normalized to an array. This array\n            // contains whatever events we wish to add (our prior extending\n            // takes care of that), but we do a couple of specific things\n            // depending on this directive so that events play nice together.\n            angular.forEach(recognizerOpts, function (options) {\n\n              if(eventName !== 'custom'){\n\n                if (eventName === 'doubletap' && hammer.get('tap')) {\n                  options.recognizeWith = 'tap';\n                }\n                else if (options.type == \"pan\" && hammer.get('swipe')) {\n                  options.recognizeWith = 'swipe';\n                }\n                else if (options.type == \"pinch\" && hammer.get('rotate')) {\n                  options.recognizeWith = 'rotate';\n                }\n\n              }\n\n              //add the recognizer with these options:\n              setupRecognizerWithOptions(\n                hammer,\n                applyManagerOptions(managerOpts, options),\n                element\n              );\n\n              //if custom there may be multiple events to apply, which\n              //we do here. else, we'll only ever add one.\n              hammer.on(eventName, handler);\n\n            });\n\n          }\n        };\n      }]);\n  });\n\n  // ---- Private Functions -----\n\n  /**\n   * Adds a gesture recognizer to a given manager. The type of recognizer to\n   * add is determined by the value of the options.type property.\n   *\n   * @param {Object}  manager Hammer.js manager object assigned to an element\n   * @param {String}  type    Options that define the recognizer to add\n   * @return {Object}         Reference to the new gesture recognizer, if\n   *                          successful, null otherwise.\n   */\n  function addRecognizer (manager, name) {\n    if (manager === undefined || name === undefined) { return null; }\n\n    var recognizer;\n\n    if (name.indexOf('pan') > -1) {\n      recognizer = new Hammer.Pan();\n    } else if (name.indexOf('pinch') > -1) {\n      recognizer = new Hammer.Pinch();\n    } else if (name.indexOf('press') > -1) {\n      recognizer = new Hammer.Press();\n    } else if (name.indexOf('rotate') > -1) {\n      recognizer = new Hammer.Rotate();\n    } else if (name.indexOf('swipe') > -1) {\n      recognizer = new Hammer.Swipe();\n    } else {\n      recognizer = new Hammer.Tap();\n    }\n\n    manager.add(recognizer);\n    return recognizer;\n  }\n\n  /**\n   * Applies certain manager options to individual recognizer options.\n   *\n   * @param  {Object} managerOpts    Manager options\n   * @param  {Object} recognizerOpts Recognizer options\n   * @return None\n   */\n  function applyManagerOptions (managerOpts, recognizerOpts) {\n    if (managerOpts) {\n      recognizerOpts.preventGhosts = managerOpts.preventGhosts;\n    }\n\n    return recognizerOpts;\n  }\n\n  /**\n   * Extracts the type of recognizer that should be instantiated from a given\n   * event name. Used only when no recognizer options are provided.\n   *\n   * @param  {String} eventName Name to derive the recognizer type from\n   * @return {string}           Type of recognizer that fires events with that name\n   */\n  function getRecognizerTypeFromeventName (eventName) {\n    if (eventName.indexOf('pan') > -1) {\n      return 'pan';\n    } else if (eventName.indexOf('pinch') > -1) {\n      return 'pinch';\n    } else if (eventName.indexOf('press') > -1) {\n      return 'press';\n    } else if (eventName.indexOf('rotate') > -1) {\n      return 'rotate';\n    } else if (eventName.indexOf('swipe') > -1) {\n      return 'swipe';\n    } else if (eventName.indexOf('tap') > -1) {\n      return 'tap';\n    } else {\n      return \"custom\";\n    }\n  }\n\n  /**\n   * Applies the passed options object to the appropriate gesture recognizer.\n   * Recognizers are created if they do not already exist. See the README for a\n   * description of the options object that can be passed to this function.\n   *\n   * @param  {Object} manager Hammer.js manager object assigned to an element\n   * @param  {Object} options Options applied to a recognizer managed by manager\n   * @return None\n   */\n  function setupRecognizerWithOptions (manager, options, element) {\n    if (manager == null || options == null || options.type == null) {\n      return console.error('ERROR: Angular Hammer could not setup the' +\n        ' recognizer. Values of the passed manager and options: ', manager, options);\n    }\n\n    var recognizer = manager.get(options._name);\n    if (!recognizer) {\n      recognizer = addRecognizer(manager, options._name);\n    }\n\n    if (!options.directions) {\n      if (options._name === 'pan' || options._name === 'swipe') {\n        options.directions = 'DIRECTION_ALL';\n      } else if (options._name.indexOf('left') > -1) {\n        options.directions = 'DIRECTION_LEFT';\n      } else if (options._name.indexOf('right') > -1) {\n        options.directions = 'DIRECTION_RIGHT';\n      } else if (options._name.indexOf('up') > -1) {\n        options.directions = 'DIRECTION_UP';\n      } else if (options._name.indexOf('down') > -1) {\n        options.directions = 'DIRECTION_DOWN';\n      } else {\n        options.directions = '';\n      }\n    }\n\n    options.direction = parseDirections(options.directions);\n    recognizer.set(options);\n\n    if (typeof options.recognizeWith === 'string') {\n      var recognizeWithRecognizer;\n\n      if (manager.get(options.recognizeWith) == null){\n        recognizeWithRecognizer = addRecognizer(manager, options.recognizeWith);\n      }\n\n      if (recognizeWithRecognizer != null) {\n        recognizer.recognizeWith(recognizeWithRecognizer);\n      }\n    }\n\n    if (typeof options.dropRecognizeWith  === 'string' &&\n        manager.get(options.dropRecognizeWith) != null) {\n      recognizer.dropRecognizeWith(manager.get(options.dropRecognizeWith));\n    }\n\n    if (typeof options.requireFailure  === 'string') {\n      var requireFailureRecognizer;\n\n      if (manager.get(options.requireFailure) == null){\n        requireFailureRecognizer = addRecognizer(manager, {type:options.requireFailure});\n      }\n\n      if (requireFailureRecognizer != null) {\n        recognizer.requireFailure(requireFailureRecognizer);\n      }\n    }\n\n    if (typeof options.dropRequireFailure === 'string' &&\n        manager.get(options.dropRequireFailure) != null) {\n      recognizer.dropRequireFailure(manager.get(options.dropRequireFailure));\n    }\n\n    if (options.preventGhosts === true && element != null) {\n      preventGhosts(element);\n    }\n  }\n\n  /**\n   * Parses the value of the directions property of any Angular Hammer options\n   * object and converts them into the standard Hammer.js directions values.\n   *\n   * @param  {String} dirs Direction names separated by '|' characters\n   * @return {Number}      Hammer.js direction value\n   */\n  function parseDirections (dirs) {\n    var directions = 0;\n\n    angular.forEach(dirs.split('|'), function (direction) {\n      if (Hammer.hasOwnProperty(direction)) {\n        directions = directions | Hammer[direction];\n      }\n    });\n\n    return directions;\n  }\n\n  // ---- Preventing Ghost Clicks ----\n\n  /**\n   * Modified from: https://gist.github.com/jtangelder/361052976f044200ea17\n   *\n   * Prevent click events after a touchend.\n   *\n   * Inspired/copy-paste from this article of Google by Ryan Fioravanti\n   * https://developers.google.com/mobile/articles/fast_buttons#ghost\n   */\n\n  function preventGhosts (element) {\n    if (!element) { return; }\n\n    var coordinates = [],\n        threshold = 25,\n        timeout = 2500;\n\n    if ('ontouchstart' in window) {\n      element[0].addEventListener('touchstart', resetCoordinates, true);\n      element[0].addEventListener('touchend', registerCoordinates, true);\n      element[0].addEventListener('click', preventGhostClick, true);\n      element[0].addEventListener('mouseup', preventGhostClick, true);\n    }\n\n    /**\n     * prevent clicks if they're in a registered XY region\n     * @param {MouseEvent} ev\n     */\n    function preventGhostClick (ev) {\n      for (var i = 0; i < coordinates.length; i++) {\n        var x = coordinates[i][0];\n        var y = coordinates[i][1];\n\n        // within the range, so prevent the click\n        if (Math.abs(ev.clientX - x) < threshold &&\n            Math.abs(ev.clientY - y) < threshold) {\n          ev.stopPropagation();\n          ev.preventDefault();\n          break;\n        }\n      }\n    }\n\n    /**\n     * reset the coordinates array\n     */\n    function resetCoordinates () {\n      coordinates = [];\n    }\n\n    /**\n     * remove the first coordinates set from the array\n     */\n    function popCoordinates () {\n      coordinates.splice(0, 1);\n    }\n\n    /**\n     * if it is an final touchend, we want to register it's place\n     * @param {TouchEvent} ev\n     */\n    function registerCoordinates (ev) {\n      // touchend is triggered on every releasing finger\n      // changed touches always contain the removed touches on a touchend\n      // the touches object might contain these also at some browsers (firefox os)\n      // so touches - changedTouches will be 0 or lower, like -1, on the final touchend\n      if(ev.touches.length - ev.changedTouches.length <= 0) {\n        var touch = ev.changedTouches[0];\n        coordinates.push([touch.clientX, touch.clientY]);\n\n        setTimeout(popCoordinates, timeout);\n      }\n    }\n  }\n})(angular, Hammer);\n"
  },
  {
    "path": "bower.json",
    "content": "{\n  \"name\": \"AngularHammer\",\n  \"version\": \"2.2-jsdw\",\n  \"authors\": [\n    \"Ryan S Mullins <ryan@ryanmullins.org>\",\n    \"James Wilson <me@unbui.lt>\"\n  ],\n  \"homepage\": \"https://github.com/jsdw/angular-hammer\",\n  \"main\": \"angular.hammer.js\",\n  \"license\": \"MIT\",\n  \"keywords\": [\n    \"Angular\",\n    \"Hammer\",\n    \"touch\",\n    \"javascript\",\n    \"gesture\"\n  ],\n  \"ignore\": [\n    \"**/.*\",\n    \"node_modules\",\n    \"bower_components\",\n    \"components\",\n    \"examples\"\n  ],\n  \"dependencies\": {\n    \"angular\": \">=1.2.0\",\n    \"hammerjs\": \">=2.0.0\"\n  }\n}\n"
  },
  {
    "path": "doc/angular.hammer.js.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"utf-8\">\n    <title>JSDoc: Source: angular.hammer.js</title>\n    \n    <script src=\"scripts/prettify/prettify.js\"> </script>\n    <script src=\"scripts/prettify/lang-css.js\"> </script>\n    <!--[if lt IE 9]>\n      <script src=\"//html5shiv.googlecode.com/svn/trunk/html5.js\"></script>\n    <![endif]-->\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"styles/prettify-tomorrow.css\">\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"styles/jsdoc-default.css\">\n</head>\n\n<body>\n\n<div id=\"main\">\n    \n    <h1 class=\"page-title\">Source: angular.hammer.js</h1>\n    \n    \n\n\n    \n    <section>\n        <article>\n            <pre class=\"prettyprint source\"><code>// ---- Angular Hammer ----\n\n// Copyright (c) 2015 Ryan S Mullins &lt;ryan@ryanmullins.org>\n// Licensed under the MIT Software License\n//\n// (fairly heavy) modifications by James Wilson &lt;me@unbui.lt>\n//\n\n(function (window, angular, Hammer) {\n  'use strict';\n\n  // Checking to make sure Hammer and Angular are defined\n\n  if (typeof angular === 'undefined') {\n    throw Error(\"angular-hammer: AngularJS (window.angular) is undefined but is necessary.\");\n  }\n  if (typeof Hammer === 'undefined') {\n    throw Error(\"angular-hammer: HammerJS (window.Hammer) is undefined but is necessary.\");\n  }\n\n  /**\n   * Mapping of the gesture event names with the Angular attribute directive\n   * names. Follows the form: &lt;directiveName>:&lt;eventName>.\n   *\n   * @type {Array}\n   */\n  var gestureTypes = [\n    'hmCustom:custom',\n    'hmSwipe:swipe',\n    'hmSwipeleft:swipeleft',\n    'hmSwiperight:swiperight',\n    'hmSwipeup:swipeup',\n    'hmSwipedown:swipedown',\n    'hmPan:pan',\n    'hmPanstart:panstart',\n    'hmPanmove:panmove',\n    'hmPanend:panend',\n    'hmPancancel:pancancel',\n    'hmPanleft:panleft',\n    'hmPanright:panright',\n    'hmPanup:panup',\n    'hmPandown:pandown',\n    'hmPress:press',\n    'hmPressup:pressup',\n    'hmRotate:rotate',\n    'hmRotatestart:rotatestart',\n    'hmRotatemove:rotatemove',\n    'hmRotateend:rotateend',\n    'hmRotatecancel:rotatecancel',\n    'hmPinch:pinch',\n    'hmPinchstart:pinchstart',\n    'hmPinchmove:pinchmove',\n    'hmPinchend:pinchend',\n    'hmPinchcancel:pinchcancel',\n    'hmPinchin:pinchin',\n    'hmPinchout:pinchout',\n    'hmTap:tap',\n    'hmDoubletap:doubletap'\n  ];\n\n  // ---- Module Definition ----\n\n  /**\n   * @module hmTouchEvents\n   * @description Angular.js module for adding Hammer.js event listeners to HTML\n   * elements using attribute directives\n   * @requires angular\n   * @requires hammer\n   */\n  var NAME = 'hmTouchEvents';\n  var hmTouchEvents = angular.module('hmTouchEvents', []);\n\n  /**\n   * Provides a common interface for configuring global manager and recognizer\n   * options. Allows things like tap duration etc to be defaulted globally and\n   * overridden on a per-directive basis as needed.\n   *\n   * @return {Object} functions to add manager and recognizer options.\n   */\n  hmTouchEvents.provider(NAME, function(){\n\n    var self = this;\n    var defaultRecognizerOpts = false;\n    var recognizerOptsHash = {};\n    var managerOpts = {};\n\n    //\n    // In order to use the Hamme rpresets provided, we need\n    // to map the recognizer fn to some name:\n    //\n    var recognizerFnToName = {};\n    recognizerFnToName[ Hammer.Tap.toString() ] = \"tap\";\n    recognizerFnToName[ Hammer.Pan.toString() ] = \"pan\";\n    recognizerFnToName[ Hammer.Pinch.toString() ] = \"pinch\";\n    recognizerFnToName[ Hammer.Press.toString() ] = \"press\";\n    recognizerFnToName[ Hammer.Rotate.toString() ] = \"rotate\";\n    recognizerFnToName[ Hammer.Swipe.toString() ] = \"swipe\";\n\n    //\n    // normalize opts, setting its name as it should be keyed by\n    // and any must-have options. currently only doubletap is treated\n    // specially. each _name leads to a new recognizer.\n    //\n    function normalizeRecognizerOptions(opts){\n      opts = angular.copy(opts);\n\n      if(opts.event){\n\n        if(opts.event == \"doubletap\"){\n          opts.type = \"tap\";\n          if(!opts.taps) opts.taps = 2;\n          opts._name = \"doubletap\";\n        } else {\n          opts._name = false;\n        }\n\n      } else {\n        opts._name = opts.type || false;\n      }\n\n      return opts;\n    }\n    //\n    // create default opts for some eventName.\n    // again, treat doubletap specially.\n    //\n    function defaultOptionsForEvent(eventName){\n      if(eventName == \"custom\"){\n        throw Error(NAME+\"Provider: no defaults exist for custom events\");\n      }\n      var ty = getRecognizerTypeFromeventName(eventName);\n      return normalizeRecognizerOptions(\n        eventName == \"doubletap\"\n          ? {type:ty, event:\"doubletap\"}\n          : {type:ty}\n      );\n    }\n\n    //\n    // Make use of presets from Hammer.defaults.preset array\n    // in angular-hammer events.\n    //\n    self.applyHammerPresets = function(){\n      var hammerPresets = Hammer.defaults.preset;\n\n      //add every preset that, when normalized, has a _name.\n      //this precludes most custom events.\n      angular.forEach(hammerPresets, function(presetArr){\n\n        var data = presetArr[1];\n        if(!data.type) data.type = recognizerFnToName[presetArr[0]];\n        data = normalizeRecognizerOptions(data);\n        if(!data._name) return;\n        recognizerOptsHash[data._name] = data;\n      });\n    }\n\n    //\n    // Add a manager option (key/val to extend or object to set all):\n    //\n    self.addManagerOption = function(name, val){\n      if(typeof name == \"object\"){\n        angular.extend(managerOpts, name);\n      }\n      else {\n        managerOpts[name] = val;\n      }\n    }\n\n    //\n    // Add a recognizer option:\n    //\n    self.addRecognizerOption = function(val){\n      if(Array.isArray(val)){\n        for(var i = 0; i &lt; val.length; i++) self.addRecognizerOption(val[i]);\n        return;\n      }\n      if(typeof val !== \"object\"){\n        throw Error(NAME+\"Provider: addRecognizerOption: should be object or array of objects\");\n      }\n      val = normalizeRecognizerOptions(val);\n\n      //hash by name if present, else if no event name,\n      //set as defaults.\n      if(val._name){\n        recognizerOptsHash[val.type] = val;\n      } else if(!val.event){\n        defaultRecognizerOpts = val;\n      }\n\n    }\n\n    //provide an interface to this that the hm-* directives use\n    //to extend their recognizer/manager opts.\n    self.$get = function(){\n      return {\n        extendWithDefaultManagerOpts: function(opts){\n          if(typeof opts != \"object\"){\n            opts = {};\n          } else {\n            opts = angular.copy(opts);\n          }\n          for(var name in managerOpts) {\n            if(!opts[name]) opts[name] = angular.copy(managerOpts[name]);\n          }\n          return opts;\n        },\n        extendWithDefaultRecognizerOpts: function(eventName, opts){\n          if(typeof opts !== \"object\"){\n            opts = [];\n          }\n          if(!Array.isArray(opts)){\n            opts = [opts];\n          }\n\n          //dont apply anything if this is custom event\n          //(beyond normalizing opts to an array):\n          if(eventName == \"custom\") return opts;\n\n          var recognizerType = getRecognizerTypeFromeventName(eventName);\n          var specificOpts = recognizerOptsHash[eventName] || recognizerOptsHash[recognizerType];\n\n          //get the last opt provided that matches the type or eventName\n          //that we have. normalizing removes any eventnames we dont care about\n          //(everything but doubletap at the moment).\n          var foundOpt;\n          var isExactMatch = false;\n          var defaults = angular.extend({}, defaultRecognizerOpts || {}, specificOpts || {});\n          opts.forEach(function(opt){\n\n            if(!opt.event && !opt.type){\n              return angular.extend(defaults, opt);\n            }\n            if(isExactMatch){\n              return;\n            }\n\n            //more specific wins over less specific.\n            if(opt.event == eventName){\n              foundOpt = opt;\n              isExactMatch = true;\n            } else if(!opt.event && opt.type == recognizerType){\n              foundOpt = opt;\n            }\n\n          });\n          if(!foundOpt) foundOpt = defaultOptionsForEvent(eventName);\n          else foundOpt = normalizeRecognizerOptions(foundOpt);\n\n\n          return [angular.extend(defaults, foundOpt)];\n        }\n      };\n    };\n\n  });\n\n  /**\n   * Iterates through each gesture type mapping and creates a directive for\n   * each of the\n   *\n   * @param  {String} type Mapping in the form of &lt;directiveName>:&lt;eventName>\n   * @return None\n   */\n  angular.forEach(gestureTypes, function (type) {\n    var directive = type.split(':'),\n        directiveName = directive[0],\n        eventName = directive[1];\n\n    hmTouchEvents.directive(directiveName, ['$parse', '$window', NAME, function ($parse, $window, defaultEvents) {\n        return {\n          restrict: 'A',\n          scope: false,\n          link: function (scope, element, attrs) {\n\n            // Check for Hammer and required functionality.\n            // error if they arent found as unexpected behaviour otherwise\n            if (!Hammer || !$window.addEventListener) {\n              throw Error(NAME+\": window.Hammer or window.addEventListener not found, can't add event \"+directiveName);\n            }\n\n            var hammer = element.data('hammer'),\n                managerOpts = defaultEvents.extendWithDefaultManagerOpts( scope.$eval(attrs.hmManagerOptions) ),\n                recognizerOpts = defaultEvents.extendWithDefaultRecognizerOpts( eventName, scope.$eval(attrs.hmRecognizerOptions) );\n\n            // Check for a manager, make one if needed and destroy it when\n            // the scope is destroyed\n            if (!hammer) {\n              hammer = new Hammer.Manager(element[0], managerOpts);\n              element.data('hammer', hammer);\n              scope.$on('$destroy', function () {\n                hammer.destroy();\n              });\n            }\n\n            // Obtain and wrap our handler function to do a couple of bits for\n            // us if options provided.\n            var handlerExpr = $parse(attrs[directiveName]).bind(null,scope);\n            var handler = function (event) {\n                  event.element = element;\n\n                  var recognizer = hammer.get(event.type);\n                  if (recognizer) {\n                    if (recognizer.options.preventDefault) {\n                      event.preventDefault();\n                    }\n                    if (recognizer.options.stopPropagation) {\n                      event.srcEvent.stopPropagation();\n                    }\n                  }\n\n                  scope.$apply(function(){\n                    handlerExpr({ '$event': event });\n                  });\n                };\n\n            // The recognizer options are normalized to an array. This array\n            // contains whatever events we wish to add (our prior extending\n            // takes care of that), but we do a couple of specific things\n            // depending on this directive so that events play nice together.\n            angular.forEach(recognizerOpts, function (options) {\n\n              if(eventName !== 'custom'){\n\n                if (eventName === 'doubletap' && hammer.get('tap')) {\n                  options.recognizeWith = 'tap';\n                }\n                else if (options.type == \"pan\" && hammer.get('swipe')) {\n                  options.recognizeWith = 'swipe';\n                }\n                else if (options.type == \"pinch\" && hammer.get('rotate')) {\n                  options.recognizeWith = 'rotate';\n                }\n\n              }\n\n              //add the recognizer with these options:\n              setupRecognizerWithOptions(\n                hammer,\n                applyManagerOptions(managerOpts, options),\n                element\n              );\n\n              //if custom there may be multiple events to apply, which\n              //we do here. else, we'll only ever add one.\n              hammer.on(eventName, handler);\n\n            });\n\n          }\n        };\n      }]);\n  });\n\n  // ---- Private Functions -----\n\n  /**\n   * Adds a gesture recognizer to a given manager. The type of recognizer to\n   * add is determined by the value of the options.type property.\n   *\n   * @param {Object}  manager Hammer.js manager object assigned to an element\n   * @param {String}  type    Options that define the recognizer to add\n   * @return {Object}         Reference to the new gesture recognizer, if\n   *                          successful, null otherwise.\n   */\n  function addRecognizer (manager, name) {\n    if (manager === undefined || name === undefined) { return null; }\n\n    var recognizer;\n\n    if (name.indexOf('pan') > -1) {\n      recognizer = new Hammer.Pan();\n    } else if (name.indexOf('pinch') > -1) {\n      recognizer = new Hammer.Pinch();\n    } else if (name.indexOf('press') > -1) {\n      recognizer = new Hammer.Press();\n    } else if (name.indexOf('rotate') > -1) {\n      recognizer = new Hammer.Rotate();\n    } else if (name.indexOf('swipe') > -1) {\n      recognizer = new Hammer.Swipe();\n    } else {\n      recognizer = new Hammer.Tap();\n    }\n\n    manager.add(recognizer);\n    return recognizer;\n  }\n\n  /**\n   * Applies certain manager options to individual recognizer options.\n   *\n   * @param  {Object} managerOpts    Manager options\n   * @param  {Object} recognizerOpts Recognizer options\n   * @return None\n   */\n  function applyManagerOptions (managerOpts, recognizerOpts) {\n    if (managerOpts) {\n      recognizerOpts.preventGhosts = managerOpts.preventGhosts;\n    }\n\n    return recognizerOpts;\n  }\n\n  /**\n   * Extracts the type of recognizer that should be instantiated from a given\n   * event name. Used only when no recognizer options are provided.\n   *\n   * @param  {String} eventName Name to derive the recognizer type from\n   * @return {string}           Type of recognizer that fires events with that name\n   */\n  function getRecognizerTypeFromeventName (eventName) {\n    if (eventName.indexOf('pan') > -1) {\n      return 'pan';\n    } else if (eventName.indexOf('pinch') > -1) {\n      return 'pinch';\n    } else if (eventName.indexOf('press') > -1) {\n      return 'press';\n    } else if (eventName.indexOf('rotate') > -1) {\n      return 'rotate';\n    } else if (eventName.indexOf('swipe') > -1) {\n      return 'swipe';\n    } else if (eventName.indexOf('tap') > -1) {\n      return 'tap';\n    } else {\n      return \"custom\";\n    }\n  }\n\n  /**\n   * Applies the passed options object to the appropriate gesture recognizer.\n   * Recognizers are created if they do not already exist. See the README for a\n   * description of the options object that can be passed to this function.\n   *\n   * @param  {Object} manager Hammer.js manager object assigned to an element\n   * @param  {Object} options Options applied to a recognizer managed by manager\n   * @return None\n   */\n  function setupRecognizerWithOptions (manager, options, element) {\n    if (manager == null || options == null || options.type == null) {\n      return console.error('ERROR: Angular Hammer could not setup the' +\n        ' recognizer. Values of the passed manager and options: ', manager, options);\n    }\n\n    var recognizer = manager.get(options._name);\n    if (!recognizer) {\n      recognizer = addRecognizer(manager, options._name);\n    }\n\n    if (!options.directions) {\n      if (options._name === 'pan' || options._name === 'swipe') {\n        options.directions = 'DIRECTION_ALL';\n      } else if (options._name.indexOf('left') > -1) {\n        options.directions = 'DIRECTION_LEFT';\n      } else if (options._name.indexOf('right') > -1) {\n        options.directions = 'DIRECTION_RIGHT';\n      } else if (options._name.indexOf('up') > -1) {\n        options.directions = 'DIRECTION_UP';\n      } else if (options._name.indexOf('down') > -1) {\n        options.directions = 'DIRECTION_DOWN';\n      } else {\n        options.directions = '';\n      }\n    }\n\n    options.direction = parseDirections(options.directions);\n    recognizer.set(options);\n\n    if (typeof options.recognizeWith === 'string') {\n      var recognizeWithRecognizer;\n\n      if (manager.get(options.recognizeWith) == null){\n        recognizeWithRecognizer = addRecognizer(manager, options.recognizeWith);\n      }\n\n      if (recognizeWithRecognizer != null) {\n        recognizer.recognizeWith(recognizeWithRecognizer);\n      }\n    }\n\n    if (typeof options.dropRecognizeWith  === 'string' &&\n        manager.get(options.dropRecognizeWith) != null) {\n      recognizer.dropRecognizeWith(manager.get(options.dropRecognizeWith));\n    }\n\n    if (typeof options.requireFailure  === 'string') {\n      var requireFailureRecognizer;\n\n      if (manager.get(options.requireFailure) == null){\n        requireFailureRecognizer = addRecognizer(manager, {type:options.requireFailure});\n      }\n\n      if (requireFailureRecognizer != null) {\n        recognizer.requireFailure(requireFailureRecognizer);\n      }\n    }\n\n    if (typeof options.dropRequireFailure === 'string' &&\n        manager.get(options.dropRequireFailure) != null) {\n      recognizer.dropRequireFailure(manager.get(options.dropRequireFailure));\n    }\n\n    if (options.preventGhosts === true && element != null) {\n      preventGhosts(element);\n    }\n  }\n\n  /**\n   * Parses the value of the directions property of any Angular Hammer options\n   * object and converts them into the standard Hammer.js directions values.\n   *\n   * @param  {String} dirs Direction names separated by '|' characters\n   * @return {Number}      Hammer.js direction value\n   */\n  function parseDirections (dirs) {\n    var directions = 0;\n\n    angular.forEach(dirs.split('|'), function (direction) {\n      if (Hammer.hasOwnProperty(direction)) {\n        directions = directions | Hammer[direction];\n      }\n    });\n\n    return directions;\n  }\n\n  // ---- Preventing Ghost Clicks ----\n\n  /**\n   * Modified from: https://gist.github.com/jtangelder/361052976f044200ea17\n   *\n   * Prevent click events after a touchend.\n   *\n   * Inspired/copy-paste from this article of Google by Ryan Fioravanti\n   * https://developers.google.com/mobile/articles/fast_buttons#ghost\n   */\n\n  function preventGhosts (element) {\n    if (!element) { return; }\n\n    var coordinates = [],\n        threshold = 25,\n        timeout = 2500;\n\n    if ('ontouchstart' in window) {\n      element[0].addEventListener('touchstart', resetCoordinates, true);\n      element[0].addEventListener('touchend', registerCoordinates, true);\n      element[0].addEventListener('click', preventGhostClick, true);\n      element[0].addEventListener('mouseup', preventGhostClick, true);\n    }\n\n    /**\n     * prevent clicks if they're in a registered XY region\n     * @param {MouseEvent} ev\n     */\n    function preventGhostClick (ev) {\n      for (var i = 0; i &lt; coordinates.length; i++) {\n        var x = coordinates[i][0];\n        var y = coordinates[i][1];\n\n        // within the range, so prevent the click\n        if (Math.abs(ev.clientX - x) &lt; threshold &&\n            Math.abs(ev.clientY - y) &lt; threshold) {\n          ev.stopPropagation();\n          ev.preventDefault();\n          break;\n        }\n      }\n    }\n\n    /**\n     * reset the coordinates array\n     */\n    function resetCoordinates () {\n      coordinates = [];\n    }\n\n    /**\n     * remove the first coordinates set from the array\n     */\n    function popCoordinates () {\n      coordinates.splice(0, 1);\n    }\n\n    /**\n     * if it is an final touchend, we want to register it's place\n     * @param {TouchEvent} ev\n     */\n    function registerCoordinates (ev) {\n      // touchend is triggered on every releasing finger\n      // changed touches always contain the removed touches on a touchend\n      // the touches object might contain these also at some browsers (firefox os)\n      // so touches - changedTouches will be 0 or lower, like -1, on the final touchend\n      if(ev.touches.length - ev.changedTouches.length &lt;= 0) {\n        var touch = ev.changedTouches[0];\n        coordinates.push([touch.clientX, touch.clientY]);\n\n        setTimeout(popCoordinates, timeout);\n      }\n    }\n  }\n})(window, window.angular, window.Hammer);\n</code></pre>\n        </article>\n    </section>\n\n\n\n\n</div>\n\n<nav>\n    <h2><a href=\"index.html\">Index</a></h2><h3>Modules</h3><ul><li><a href=\"module-hmTouchEvents.html\">hmTouchEvents</a></li></ul>\n</nav>\n\n<br clear=\"both\">\n\n<footer>\n    Documentation generated by <a href=\"https://github.com/jsdoc3/jsdoc\">JSDoc 3.2.2</a> on Thu Jun 18 2015 11:59:53 GMT+0100 (BST)\n</footer>\n\n<script> prettyPrint(); </script>\n<script src=\"scripts/linenumber.js\"> </script>\n</body>\n</html>\n"
  },
  {
    "path": "doc/index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"utf-8\">\n    <title>JSDoc: Index</title>\n    \n    <script src=\"scripts/prettify/prettify.js\"> </script>\n    <script src=\"scripts/prettify/lang-css.js\"> </script>\n    <!--[if lt IE 9]>\n      <script src=\"//html5shiv.googlecode.com/svn/trunk/html5.js\"></script>\n    <![endif]-->\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"styles/prettify-tomorrow.css\">\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"styles/jsdoc-default.css\">\n</head>\n\n<body>\n\n<div id=\"main\">\n    \n    <h1 class=\"page-title\">Index</h1>\n    \n    \n\n\n    \n\n\n    <h3> </h3>\n\n\n\n\n\n\n\n\n\n    \n\n\n\n\n\n\n\n\n\n</div>\n\n<nav>\n    <h2><a href=\"index.html\">Index</a></h2><h3>Modules</h3><ul><li><a href=\"module-hmTouchEvents.html\">hmTouchEvents</a></li></ul>\n</nav>\n\n<br clear=\"both\">\n\n<footer>\n    Documentation generated by <a href=\"https://github.com/jsdoc3/jsdoc\">JSDoc 3.2.2</a> on Thu Jun 18 2015 11:59:53 GMT+0100 (BST)\n</footer>\n\n<script> prettyPrint(); </script>\n<script src=\"scripts/linenumber.js\"> </script>\n</body>\n</html>"
  },
  {
    "path": "doc/module-hmTouchEvents.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"utf-8\">\n    <title>JSDoc: Module: hmTouchEvents</title>\n    \n    <script src=\"scripts/prettify/prettify.js\"> </script>\n    <script src=\"scripts/prettify/lang-css.js\"> </script>\n    <!--[if lt IE 9]>\n      <script src=\"//html5shiv.googlecode.com/svn/trunk/html5.js\"></script>\n    <![endif]-->\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"styles/prettify-tomorrow.css\">\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"styles/jsdoc-default.css\">\n</head>\n\n<body>\n\n<div id=\"main\">\n    \n    <h1 class=\"page-title\">Module: hmTouchEvents</h1>\n    \n    \n\n\n\n<section>\n    \n<header>\n    <h2>\n    hmTouchEvents\n    </h2>\n    \n</header>  \n\n<article>\n    <div class=\"container-overview\">\n    \n    \n    \n        \n            <div class=\"description\"><p>Angular.js module for adding Hammer.js event listeners to HTML\nelements using attribute directives</p></div>\n        \n        \n        \n<dl class=\"details\">\n    \n        \n    \n    \n    \n\n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    <dt class=\"tag-source\">Source:</dt>\n    <dd class=\"tag-source\"><ul class=\"dummy\"><li>\n        <a href=\"angular.hammer.js.html\">angular.hammer.js</a>, <a href=\"angular.hammer.js.html#line63\">line 63</a>\n    </li></ul></dd>\n    \n    \n    \n    \n    \n    \n    \n</dl>\n\n        \n        \n    \n    </div>\n    \n    \n    \n    \n    \n    \n        <h3 class=\"subsection-title\">Requires</h3>\n        \n        <ul>\n            <li>module:angular</li>\n        \n            <li>module:hammer</li>\n        </ul>\n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n</article>\n\n</section>  \n\n\n\n\n</div>\n\n<nav>\n    <h2><a href=\"index.html\">Index</a></h2><h3>Modules</h3><ul><li><a href=\"module-hmTouchEvents.html\">hmTouchEvents</a></li></ul>\n</nav>\n\n<br clear=\"both\">\n\n<footer>\n    Documentation generated by <a href=\"https://github.com/jsdoc3/jsdoc\">JSDoc 3.2.2</a> on Thu Jun 18 2015 11:59:53 GMT+0100 (BST)\n</footer>\n\n<script> prettyPrint(); </script>\n<script src=\"scripts/linenumber.js\"> </script>\n</body>\n</html>"
  },
  {
    "path": "doc/scripts/linenumber.js",
    "content": "(function() {\n    var counter = 0;\n    var numbered;\n    var source = document.getElementsByClassName('prettyprint source');\n\n    if (source && source[0]) {\n        source = source[0].getElementsByTagName('code')[0];\n\n        numbered = source.innerHTML.split('\\n');\n        numbered = numbered.map(function(item) {\n            counter++;\n            return '<span id=\"line' + counter + '\" class=\"line\"></span>' + item;\n        });\n\n        source.innerHTML = numbered.join('\\n');\n    }\n})();\n"
  },
  {
    "path": "doc/scripts/prettify/Apache-License-2.0.txt",
    "content": "\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "doc/scripts/prettify/lang-css.js",
    "content": "PR.registerLangHandler(PR.createSimpleLexer([[\"pln\",/^[\\t\\n\\f\\r ]+/,null,\" \\t\\r\\n\f\"]],[[\"str\",/^\"(?:[^\\n\\f\\r\"\\\\]|\\\\(?:\\r\\n?|\\n|\\f)|\\\\[\\S\\s])*\"/,null],[\"str\",/^'(?:[^\\n\\f\\r'\\\\]|\\\\(?:\\r\\n?|\\n|\\f)|\\\\[\\S\\s])*'/,null],[\"lang-css-str\",/^url\\(([^\"')]*)\\)/i],[\"kwd\",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\\w-]|$)/i,null],[\"lang-css-kw\",/^(-?(?:[_a-z]|\\\\[\\da-f]+ ?)(?:[\\w-]|\\\\\\\\[\\da-f]+ ?)*)\\s*:/i],[\"com\",/^\\/\\*[^*]*\\*+(?:[^*/][^*]*\\*+)*\\//],[\"com\",\n/^(?:<\\!--|--\\>)/],[\"lit\",/^(?:\\d+|\\d*\\.\\d+)(?:%|[a-z]+)?/i],[\"lit\",/^#[\\da-f]{3,6}/i],[\"pln\",/^-?(?:[_a-z]|\\\\[\\da-f]+ ?)(?:[\\w-]|\\\\\\\\[\\da-f]+ ?)*/i],[\"pun\",/^[^\\s\\w\"']+/]]),[\"css\"]);PR.registerLangHandler(PR.createSimpleLexer([],[[\"kwd\",/^-?(?:[_a-z]|\\\\[\\da-f]+ ?)(?:[\\w-]|\\\\\\\\[\\da-f]+ ?)*/i]]),[\"css-kw\"]);PR.registerLangHandler(PR.createSimpleLexer([],[[\"str\",/^[^\"')]+/]]),[\"css-str\"]);\n"
  },
  {
    "path": "doc/scripts/prettify/prettify.js",
    "content": "var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;\n(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:\"0\"<=b&&b<=\"7\"?parseInt(a.substring(1),8):b===\"u\"||b===\"x\"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?\"\\\\x0\":\"\\\\x\")+a.toString(16);a=String.fromCharCode(a);if(a===\"\\\\\"||a===\"-\"||a===\"[\"||a===\"]\")a=\"\\\\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\\\u[\\dA-Fa-f]{4}|\\\\x[\\dA-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\S\\s]|[^\\\\]/g),a=\n[],b=[],o=f[0]===\"^\",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&\"-\"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=[\"[\"];o&&b.push(\"^\");b.push.apply(b,a);for(c=0;c<\nf.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push(\"-\"),b.push(e(i[1])));b.push(\"]\");return b.join(\"\")}function y(a){for(var f=a.source.match(/\\[(?:[^\\\\\\]]|\\\\[\\S\\s])*]|\\\\u[\\dA-Fa-f]{4}|\\\\x[\\dA-Fa-f]{2}|\\\\\\d+|\\\\[^\\dux]|\\(\\?[!:=]|[()^]|[^()[\\\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j===\"(\"?++i:\"\\\\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j===\"(\"?(++i,d[i]===void 0&&(f[c]=\"(?:\")):\"\\\\\"===j.charAt(0)&&\n(j=+j.substring(1))&&j<=i&&(f[c]=\"\\\\\"+d[i]);for(i=c=0;c<b;++c)\"^\"===f[c]&&\"^\"!==f[c+1]&&(f[c]=\"\");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a===\"[\"?f[c]=h(j):a!==\"\\\\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return\"[\"+String.fromCharCode(a&-33,a|32)+\"]\"}));return f.join(\"\")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\\\u[\\da-f]{4}|\\\\x[\\da-f]{2}|\\\\[^UXux]/gi,\"\"))){s=!0;l=!1;break}}for(var r=\n{b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(\"\"+g);n.push(\"(?:\"+y(g)+\")\")}return RegExp(n.join(\"|\"),l?\"gi\":\"g\")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibling)m(g);g=a.nodeName;if(\"BR\"===g||\"LI\"===g)h[s]=\"\\n\",t[s<<1]=y++,t[s++<<1|1]=a;break;case 3:case 4:g=a.nodeValue,g.length&&(g=p?g.replace(/\\r\\n?/g,\"\\n\"):g.replace(/[\\t\\n\\r ]+/g,\" \"),h[s]=g,t[s<<1]=y,y+=g.length,\nt[s++<<1|1]=a)}}var e=/(?:^|\\s)nocode(?:\\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue(\"white-space\"));var p=l&&\"pre\"===l.substring(0,3);m(a);return{a:h.join(\"\").replace(/\\n$/,\"\"),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,\"pln\"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(typeof b===\n\"string\")c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b=\"pln\")}if((c=b.length>=5&&\"lang-\"===b.substring(0,5))&&!(o&&typeof o[1]===\"string\"))c=!1,b=\"src\";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),\nl=[],p={},d=0,g=e.length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=\"\"+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\\S\\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push([\"str\",/^(?:'''(?:[^'\\\\]|\\\\[\\S\\s]|''?(?=[^']))*(?:'''|$)|\"\"\"(?:[^\"\\\\]|\\\\[\\S\\s]|\"\"?(?=[^\"]))*(?:\"\"\"|$)|'(?:[^'\\\\]|\\\\[\\S\\s])*(?:'|$)|\"(?:[^\"\\\\]|\\\\[\\S\\s])*(?:\"|$))/,q,\"'\\\"\"]):a.multiLineStrings?m.push([\"str\",/^(?:'(?:[^'\\\\]|\\\\[\\S\\s])*(?:'|$)|\"(?:[^\"\\\\]|\\\\[\\S\\s])*(?:\"|$)|`(?:[^\\\\`]|\\\\[\\S\\s])*(?:`|$))/,\nq,\"'\\\"`\"]):m.push([\"str\",/^(?:'(?:[^\\n\\r'\\\\]|\\\\.)*(?:'|$)|\"(?:[^\\n\\r\"\\\\]|\\\\.)*(?:\"|$))/,q,\"\\\"'\"]);a.verbatimStrings&&e.push([\"str\",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push([\"com\",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,\"#\"]):m.push([\"com\",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\\b|[^\\n\\r]*)/,q,\"#\"]),e.push([\"str\",/^<(?:(?:(?:\\.\\.\\/)*|\\/?)(?:[\\w-]+(?:\\/[\\w-]+)+)?[\\w-]+\\.h|[a-z]\\w*)>/,q])):m.push([\"com\",/^#[^\\n\\r]*/,\nq,\"#\"]));a.cStyleComments&&(e.push([\"com\",/^\\/\\/[^\\n\\r]*/,q]),e.push([\"com\",/^\\/\\*[\\S\\s]*?(?:\\*\\/|$)/,q]));a.regexLiterals&&e.push([\"lang-regex\",/^(?:^^\\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|,|-=|->|\\/|\\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\\^=|\\^\\^|\\^\\^=|{|\\||\\|=|\\|\\||\\|\\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(\\/(?=[^*/])(?:[^/[\\\\]|\\\\[\\S\\s]|\\[(?:[^\\\\\\]]|\\\\[\\S\\s])*(?:]|$))+\\/)/]);(h=a.types)&&e.push([\"typ\",h]);a=(\"\"+a.keywords).replace(/^ | $/g,\n\"\");a.length&&e.push([\"kwd\",RegExp(\"^(?:\"+a.replace(/[\\s,]+/g,\"|\")+\")\\\\b\"),q]);m.push([\"pln\",/^\\s+/,q,\" \\r\\n\\t\\xa0\"]);e.push([\"lit\",/^@[$_a-z][\\w$@]*/i,q],[\"typ\",/^(?:[@_]?[A-Z]+[a-z][\\w$@]*|\\w+_t\\b)/,q],[\"pln\",/^[$_a-z][\\w$@]*/i,q],[\"lit\",/^(?:0x[\\da-f]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+-]?\\d+)?)[a-z]*/i,q,\"0123456789\"],[\"pln\",/^\\\\[\\S\\s]?/,q],[\"pun\",/^.[^\\s\\w\"-$'./@\\\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if(\"BR\"===a.nodeName)h(a),\na.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}\nfor(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\\s)nocode(?:\\s|$)/,t=/\\r\\n?|\\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue(\"white-space\"));var p=l&&\"pre\"===l.substring(0,3);for(l=s.createElement(\"LI\");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g<d.length;++g)e(d[g]);m===(m|0)&&d[0].setAttribute(\"value\",\nm);var r=s.createElement(\"OL\");r.className=\"linenums\";for(var n=Math.max(0,m-1|0)||0,g=0,z=d.length;g<z;++g)l=d[g],l.className=\"L\"+(g+n)%10,l.firstChild||l.appendChild(s.createTextNode(\"\\xa0\")),r.appendChild(l);a.appendChild(r)}function k(a,m){for(var e=m.length;--e>=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn(\"cannot override language handler %s\",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\\s*</.test(m)?\"default-markup\":\"default-code\";return A[a]}function E(a){var m=\na.g;try{var e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);var k=/\\bMSIE\\b/.test(navigator.userAgent),m=/\\n/g,t=a.a,s=t.length,e=0,l=a.c,p=l.length,h=0,d=a.e,g=d.length,a=0;d[g]=s;var r,n;for(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;for(n=r=0;n<g;){for(var z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}for(d.length=r;h<p;){var o=l[h+2]||s,c=d[a+2]||s,b=Math.min(o,c),i=l[h+1],j;if(i.nodeType!==1&&(j=t.substring(e,b))){k&&(j=j.replace(m,\"\\r\"));i.nodeValue=\nj;var u=i.ownerDocument,v=u.createElement(\"SPAN\");v.className=d[a+1];var x=i.parentNode;x.replaceChild(v,i);v.appendChild(i);e<o&&(l[h+1]=i=u.createTextNode(t.substring(b,o)),x.insertBefore(i,v.nextSibling))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}catch(w){\"console\"in window&&console.log(w&&w.stack?w.stack:w)}}var v=[\"break,continue,do,else,for,if,return,while\"],w=[[v,\"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile\"],\n\"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof\"],F=[w,\"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where\"],G=[w,\"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient\"],\nH=[G,\"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var\"],w=[w,\"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN\"],I=[v,\"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None\"],\nJ=[v,\"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END\"],v=[v,\"case,done,elif,esac,eval,fi,function,in,local,set,then,until\"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\\d*)/,N=/\\S/,O=u({keywords:[F,H,w,\"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END\"+\nI,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,[\"default-code\"]);k(x([],[[\"pln\",/^[^<?]+/],[\"dec\",/^<!\\w[^>]*(?:>|$)/],[\"com\",/^<\\!--[\\S\\s]*?(?:--\\>|$)/],[\"lang-\",/^<\\?([\\S\\s]+?)(?:\\?>|$)/],[\"lang-\",/^<%([\\S\\s]+?)(?:%>|$)/],[\"pun\",/^(?:<[%?]|[%?]>)/],[\"lang-\",/^<xmp\\b[^>]*>([\\S\\s]+?)<\\/xmp\\b[^>]*>/i],[\"lang-js\",/^<script\\b[^>]*>([\\S\\s]*?)(<\\/script\\b[^>]*>)/i],[\"lang-css\",/^<style\\b[^>]*>([\\S\\s]*?)(<\\/style\\b[^>]*>)/i],[\"lang-in.tag\",/^(<\\/?[a-z][^<>]*>)/i]]),\n[\"default-markup\",\"htm\",\"html\",\"mxml\",\"xhtml\",\"xml\",\"xsl\"]);k(x([[\"pln\",/^\\s+/,q,\" \\t\\r\\n\"],[\"atv\",/^(?:\"[^\"]*\"?|'[^']*'?)/,q,\"\\\"'\"]],[[\"tag\",/^^<\\/?[a-z](?:[\\w-.:]*\\w)?|\\/?>$/i],[\"atn\",/^(?!style[\\s=]|on)[a-z](?:[\\w:-]*\\w)?/i],[\"lang-uq.val\",/^=\\s*([^\\s\"'>]*(?:[^\\s\"'/>]|\\/(?=\\s)))/],[\"pun\",/^[/<->]+/],[\"lang-js\",/^on\\w+\\s*=\\s*\"([^\"]+)\"/i],[\"lang-js\",/^on\\w+\\s*=\\s*'([^']+)'/i],[\"lang-js\",/^on\\w+\\s*=\\s*([^\\s\"'>]+)/i],[\"lang-css\",/^style\\s*=\\s*\"([^\"]+)\"/i],[\"lang-css\",/^style\\s*=\\s*'([^']+)'/i],[\"lang-css\",\n/^style\\s*=\\s*([^\\s\"'>]+)/i]]),[\"in.tag\"]);k(x([],[[\"atv\",/^[\\S\\s]+/]]),[\"uq.val\"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),[\"c\",\"cc\",\"cpp\",\"cxx\",\"cyc\",\"m\"]);k(u({keywords:\"null,true,false\"}),[\"json\"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),[\"cs\"]);k(u({keywords:G,cStyleComments:!0}),[\"java\"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),[\"bsh\",\"csh\",\"sh\"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),\n[\"cv\",\"py\"]);k(u({keywords:\"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END\",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),[\"perl\",\"pl\",\"pm\"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),[\"rb\"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),[\"js\"]);k(u({keywords:\"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes\",\nhashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),[\"coffee\"]);k(x([],[[\"str\",/^[\\S\\s]+/]]),[\"regex\"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement(\"PRE\");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p<h.length&&l.now()<e;p++){var n=h[p],k=n.className;if(k.indexOf(\"prettyprint\")>=0){var k=k.match(g),f,b;if(b=\n!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&\"CODE\"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName===\"pre\"||o.tagName===\"code\"||o.tagName===\"xmp\")&&o.className&&o.className.indexOf(\"prettyprint\")>=0){b=!0;break}b||((b=(b=n.className.match(/\\blinenums\\b(?::(\\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.length?setTimeout(m,\n250):a&&a()}for(var e=[document.getElementsByTagName(\"pre\"),document.getElementsByTagName(\"code\"),document.getElementsByTagName(\"xmp\")],h=[],k=0;k<e.length;++k)for(var t=0,s=e[k].length;t<s;++t)h.push(e[k][t]);var e=q,l=Date;l.now||(l={now:function(){return+new Date}});var p=0,d,g=/\\blang(?:uage)?-([\\w.]+)(?!\\S)/;m()};window.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:\"atn\",PR_ATTRIB_VALUE:\"atv\",PR_COMMENT:\"com\",PR_DECLARATION:\"dec\",PR_KEYWORD:\"kwd\",PR_LITERAL:\"lit\",\nPR_NOCODE:\"nocode\",PR_PLAIN:\"pln\",PR_PUNCTUATION:\"pun\",PR_SOURCE:\"src\",PR_STRING:\"str\",PR_TAG:\"tag\",PR_TYPE:\"typ\"}})();\n"
  },
  {
    "path": "doc/styles/jsdoc-default.css",
    "content": "html\n{\n    overflow: auto;\n    background-color: #fff;\n}\n\nbody\n{\n\tfont: 14px \"DejaVu Sans Condensed\", \"Liberation Sans\", \"Nimbus Sans L\", Tahoma, Geneva, \"Helvetica Neue\", Helvetica, Arial, sans serif;\n\tline-height: 130%;\n\tcolor: #000;\n\tbackground-color: #fff;\n}\n\na {\n    color: #444;\n}\n\na:visited {\n    color: #444;\n}\n\na:active {\n    color: #444;\n}\n\nheader\n{\n\tdisplay: block;\n\tpadding: 6px 4px;\n}\n\n.class-description {\n    font-style: italic;\n\tfont-family: Palatino, 'Palatino Linotype', serif;\n\tfont-size: 130%;\n\tline-height: 140%;\n\tmargin-bottom: 1em;\n\tmargin-top: 1em;\n}\n\n#main {\n    float: left;\n    width: 100%;\n}\n\nsection\n{\n\tdisplay: block;\n\t\n\tbackground-color: #fff;\n\tpadding: 12px 24px;\n    border-bottom: 1px solid #ccc;\n    margin-right: 240px;\n}\n\n.variation {\n    display: none;\n}\n\n.optional:after {\n\tcontent: \"opt\";\n\tfont-size: 60%;\n\tcolor: #aaa;\n\tfont-style: italic;\n\tfont-weight: lighter;\n}\n\nnav\n{\n\tdisplay: block;\n\tfloat: left;\n    margin-left: -230px;\n    margin-top: 28px;\n    width: 220px;\n    border-left: 1px solid #ccc;\n    padding-left: 9px;\n}\n\nnav ul {\n    font-family: 'Lucida Grande', 'Lucida Sans Unicode', arial, sans-serif;\n    font-size: 100%;\n    line-height: 17px;\n    padding:0;\n    margin:0;\n    list-style-type:none;\n}\n\nnav h2 a, nav h2 a:visited {\n    color: #A35A00;\n    text-decoration: none;\n}\n\nnav h3 {\n    margin-top: 12px;\n}\n\nnav li {\n    margin-top: 6px;\n}\n\nnav a {\n    color: #5C5954;\n}\n\nnav a:visited {\n    color: #5C5954;\n}\n\nnav a:active {\n    color: #5C5954;\n}\n\nfooter {\n    display: block;\n    padding: 6px;\n    margin-top: 12px;\n    font-style: italic;\n    font-size: 90%;\n}\n\nh1\n{\n\tfont-size: 200%;\n\tfont-weight: bold;\n\tletter-spacing: -0.01em;\n\tmargin: 6px 0 9px 0;\n}\n\nh2\n{\n\tfont-size: 170%;\n\tfont-weight: bold;\n\tletter-spacing: -0.01em;\n\tmargin: 6px 0 3px 0;\n}\n\nh3\n{\n\tfont-size: 150%;\n\tfont-weight: bold;\n\tletter-spacing: -0.01em;\n\tmargin-top: 16px;\n\tmargin: 6px 0 3px 0;\n}\n\nh4\n{\n\tfont-size: 130%;\n\tfont-weight: bold;\n\tletter-spacing: -0.01em;\n\tmargin-top: 16px;\n\tmargin: 18px 0 3px 0;\n\tcolor: #A35A00;\n}\n\nh5, .container-overview .subsection-title\n{\n\tfont-size: 120%;\n\tfont-weight: bold;\n\tletter-spacing: -0.01em;\n\tmargin: 8px 0 3px -16px;\n}\n\nh6\n{\n\tfont-size: 100%;\n\tletter-spacing: -0.01em;\n\tmargin: 6px 0 3px 0;\n\tfont-style: italic;\n}\n\n.ancestors { color: #999; }\n.ancestors a\n{\n    color: #999 !important;\n    text-decoration: none;\n}\n\n.important\n{\n\tfont-weight: bold;\n\tcolor: #950B02;\n}\n\n.yes-def {\n    text-indent: -1000px;\n}\n\n.type-signature {\n    color: #aaa;\n}\n\n.name, .signature {\n\tfont-family: Consolas, \"Lucida Console\", Monaco, monospace;\n}\n\n.details { margin-top: 14px; border-left: 2px solid #DDD; }\n.details dt { width:100px; float:left; padding-left: 10px;  padding-top: 6px; }\n.details dd { margin-left: 50px; }\n.details ul { margin: 0; }\n.details ul { list-style-type: none; }\n.details li { margin-left: 30px; padding-top: 6px; }\n.details pre.prettyprint { margin: 0 }\n.details .object-value { padding-top: 0; }\n\n.description {\n\tmargin-bottom: 1em;\n\tmargin-left: -16px;\n\tmargin-top: 1em;\n}\n\n.code-caption\n{\n\tfont-style: italic;\n\tfont-family: Palatino, 'Palatino Linotype', serif;\n\tfont-size: 107%;\n\tmargin: 0;\n}\n\n.prettyprint\n{\n\tborder: 1px solid #ddd;\n\twidth: 80%;\n    overflow: auto;\n}\n\n.prettyprint.source {\n    width: inherit;\n}\n\n.prettyprint code\n{\n\tfont-family: Consolas, 'Lucida Console', Monaco, monospace;\n\tfont-size: 100%;\n\tline-height: 18px;\n\tdisplay: block;\n\tpadding: 4px 12px;\n\tmargin: 0;\n\tbackground-color: #fff;\n\tcolor: #000;\n\tborder-left: 3px #ddd solid;\n}\n\n.prettyprint code span.line\n{\n  display: inline-block;\n}\n\n.params, .props\n{\n\tborder-spacing: 0;\n\tborder: 0;\n\tborder-collapse: collapse;\n}\n\n.params .name, .props .name, .name code {\n\tcolor: #A35A00;\n\tfont-family: Consolas, 'Lucida Console', Monaco, monospace;\n\tfont-size: 100%;\n}\n\n.params td, .params th, .props td, .props th\n{\n\tborder: 1px solid #ddd;\n\tmargin: 0px;\n\ttext-align: left;\n\tvertical-align: top;\n\tpadding: 4px 6px;\n\tdisplay: table-cell;\n}\n\n.params thead tr, .props thead tr\n{\n\tbackground-color: #ddd;\n\tfont-weight: bold;\n}\n\n.params .params thead tr, .props .props thead tr\n{\n\tbackground-color: #fff;\n\tfont-weight: bold;\n}\n\n.params th, .props th { border-right: 1px solid #aaa; }\n.params thead .last, .props thead .last { border-right: 1px solid #ddd; }\n\n.disabled {\n    color: #454545;\n}\n"
  },
  {
    "path": "doc/styles/prettify-jsdoc.css",
    "content": "/* JSDoc prettify.js theme */\n\n/* plain text */\n.pln {\n  color: #000000;\n  font-weight: normal;\n  font-style: normal;\n}\n\n/* string content */\n.str {\n  color: #006400;\n  font-weight: normal;\n  font-style: normal;\n}\n\n/* a keyword */\n.kwd {\n  color: #000000;\n  font-weight: bold;\n  font-style: normal;\n}\n\n/* a comment */\n.com {\n  font-weight: normal;\n  font-style: italic;\n}\n\n/* a type name */\n.typ {\n  color: #000000;\n  font-weight: normal;\n  font-style: normal;\n}\n\n/* a literal value */\n.lit {\n  color: #006400;\n  font-weight: normal;\n  font-style: normal;\n}\n\n/* punctuation */\n.pun {\n  color: #000000;\n  font-weight: bold;\n  font-style: normal;\n}\n\n/* lisp open bracket */\n.opn {\n  color: #000000;\n  font-weight: bold;\n  font-style: normal;\n}\n\n/* lisp close bracket */\n.clo {\n  color: #000000;\n  font-weight: bold;\n  font-style: normal;\n}\n\n/* a markup tag name */\n.tag {\n  color: #006400;\n  font-weight: normal;\n  font-style: normal;\n}\n\n/* a markup attribute name */\n.atn {\n  color: #006400;\n  font-weight: normal;\n  font-style: normal;\n}\n\n/* a markup attribute value */\n.atv {\n  color: #006400;\n  font-weight: normal;\n  font-style: normal;\n}\n\n/* a declaration */\n.dec {\n  color: #000000;\n  font-weight: bold;\n  font-style: normal;\n}\n\n/* a variable name */\n.var {\n  color: #000000;\n  font-weight: normal;\n  font-style: normal;\n}\n\n/* a function name */\n.fun {\n  color: #000000;\n  font-weight: bold;\n  font-style: normal;\n}\n\n/* Specify class=linenums on a pre to get line numbering */\nol.linenums {\n  margin-top: 0;\n  margin-bottom: 0;\n}\n"
  },
  {
    "path": "doc/styles/prettify-tomorrow.css",
    "content": "/* Tomorrow Theme */\n/* Original theme - https://github.com/chriskempson/tomorrow-theme */\n/* Pretty printing styles. Used with prettify.js. */\n/* SPAN elements with the classes below are added by prettyprint. */\n/* plain text */\n.pln {\n  color: #4d4d4c; }\n\n@media screen {\n  /* string content */\n  .str {\n    color: #718c00; }\n\n  /* a keyword */\n  .kwd {\n    color: #8959a8; }\n\n  /* a comment */\n  .com {\n    color: #8e908c; }\n\n  /* a type name */\n  .typ {\n    color: #4271ae; }\n\n  /* a literal value */\n  .lit {\n    color: #f5871f; }\n\n  /* punctuation */\n  .pun {\n    color: #4d4d4c; }\n\n  /* lisp open bracket */\n  .opn {\n    color: #4d4d4c; }\n\n  /* lisp close bracket */\n  .clo {\n    color: #4d4d4c; }\n\n  /* a markup tag name */\n  .tag {\n    color: #c82829; }\n\n  /* a markup attribute name */\n  .atn {\n    color: #f5871f; }\n\n  /* a markup attribute value */\n  .atv {\n    color: #3e999f; }\n\n  /* a declaration */\n  .dec {\n    color: #f5871f; }\n\n  /* a variable name */\n  .var {\n    color: #c82829; }\n\n  /* a function name */\n  .fun {\n    color: #4271ae; } }\n/* Use higher contrast and text-weight for printable form. */\n@media print, projection {\n  .str {\n    color: #060; }\n\n  .kwd {\n    color: #006;\n    font-weight: bold; }\n\n  .com {\n    color: #600;\n    font-style: italic; }\n\n  .typ {\n    color: #404;\n    font-weight: bold; }\n\n  .lit {\n    color: #044; }\n\n  .pun, .opn, .clo {\n    color: #440; }\n\n  .tag {\n    color: #006;\n    font-weight: bold; }\n\n  .atn {\n    color: #404; }\n\n  .atv {\n    color: #060; } }\n/* Style */\n/*\npre.prettyprint {\n  background: white;\n  font-family: Menlo, Monaco, Consolas, monospace;\n  font-size: 12px;\n  line-height: 1.5;\n  border: 1px solid #ccc;\n  padding: 10px; }\n*/\n\n/* Specify class=linenums on a pre to get line numbering */\nol.linenums {\n  margin-top: 0;\n  margin-bottom: 0; }\n\n/* IE indents via margin-left */\nli.L0,\nli.L1,\nli.L2,\nli.L3,\nli.L4,\nli.L5,\nli.L6,\nli.L7,\nli.L8,\nli.L9 {\n  /* */ }\n\n/* Alternate shading for lines */\nli.L1,\nli.L3,\nli.L5,\nli.L7,\nli.L9 {\n  /* */ }\n"
  },
  {
    "path": "examples/browserify/custom.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n      }\n\n      #target {\n        width: 500px;\n        height: 500px;\n        margin-left: auto;\n        margin-right: auto;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"target\"\n      ng-controller=\"hmCtrl\"\n      hm-custom=\"onHammer\"\n      hm-manager-options='{}'\n      hm-recognizer-options='[\n        {\"type\":\"pan\",\"event\":\"twoFingerPan\",\"pointers\":2,\"directions\":\"DIRECTION_ALL\"},\n        {\"type\":\"tap\",\"event\":\"dbltap\",\"pointers\":2,\"taps\":1}\n      ]'\n      >\n        {{eventType}}\n    </div>\n    <script type=\"text/javascript\" src=\"lib/hammerjs/hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"lib/angular/angular.js\"></script>\n    <script type=\"text/javascript\" src=\"angular.hammer.demo.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.eventType = \"No events yet\";\n          $scope.onHammer = function onHammer (event) {\n            $scope.eventType = event.type;\n          };\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/browserify/default.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n      }\n\n      #target {\n        width: 500px;\n        height: 500px;\n        margin-left: auto;\n        margin-right: auto;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"target\"\n      ng-controller=\"hmCtrl\"\n      hm-pan=\"onHammer\"\n      hm-pinch=\"onHammer\"\n      hm-press=\"onHammer\"\n      hm-rotate=\"onHammer\"\n      hm-swipe=\"onHammer\"\n      hm-tap=\"onHammer\"\n      hm-doubletap=\"onHammer\">\n        {{eventType}}\n    </div>\n    <script type=\"text/javascript\" src=\"./example.js\"></script>\n  </body>\n</html>"
  },
  {
    "path": "examples/browserify/dragging.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n        width: 100%;\n        height: 100%;\n      }\n\n      .relpos {\n        position: relative;\n      }\n\n      #target {\n        left: 0;\n        top: 0;\n        width: 500px;\n        height: 500px;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div ng-controller=\"hmCtrl\" hm-dir=\"hm-dir\"></div>\n    <script type=\"text/javascript\" src=\"lib/hammerjs/hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"lib/angular/angular.js\"></script>\n    <script type=\"text/javascript\" src=\"angular.hammer.demo.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.boxMessage = \"Drag me around!\";\n        })\n        .directive('hmDir', function () {\n          return {\n            'restrict' : 'AE',\n            'template' : '<div id=\"target\" hm-panmove=\"onHammer\" class=\"relpos\">{{boxMessage}}</div>',\n            'link' : function (scope, element, attrs) {\n              scope.onHammer = function onHammer (event) {\n                if (event.target === element[0].children[0]) {\n                  var x = event.center.x - 250,\n                      y = event.center.y - 250;\n\n                  scope.boxMessage = '{x:' + x + ', y:' + y + '}';\n\n                  console.log(element.children());\n\n                  element.children().css({\n                    'left' : x + 'px',\n                    'top' : y + 'px'\n                  });\n                }\n              };\n            }\n          }\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/browserify/index.js",
    "content": "var angular = require('angular');\n\nrequire('angular-hammer');\n\nangular.module('hmTime', ['hmTouchEvents'])\n  .controller('hmCtrl', ['$scope', function ($scope) {\n    $scope.eventType = \"No events yet\";\n    $scope.onHammer = function onHammer (event) {\n      $scope.eventType = event.type;\n    };\n  }]);"
  },
  {
    "path": "examples/raw/custom.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n      }\n\n      #target {\n        width: 500px;\n        height: 500px;\n        margin-left: auto;\n        margin-right: auto;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"target\"\n      ng-controller=\"hmCtrl\"\n      hm-custom=\"onHammer\"\n      hm-manager-options='{}'\n      hm-recognizer-options='[\n        {\"type\":\"pan\",\"event\":\"twoFingerPan\",\"pointers\":2,\"directions\":\"DIRECTION_ALL\"},\n        {\"type\":\"tap\",\"event\":\"dbltap\",\"pointers\":2,\"taps\":1}\n      ]'\n      >\n        {{eventType}}\n    </div>\n    <script type=\"text/javascript\" src=\"./hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"./angular.js\"></script>\n    <script type=\"text/javascript\" src=\"./angular.hammer.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.eventType = \"No events yet\";\n          $scope.onHammer = function onHammer (event) {\n            $scope.eventType = event.type;\n          };\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/raw/default.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n      }\n\n      #target {\n        width: 500px;\n        height: 500px;\n        margin-left: auto;\n        margin-right: auto;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"target\"\n      ng-controller=\"hmCtrl\"\n      hm-pan=\"onHammer\"\n      hm-pinch=\"onHammer\"\n      hm-press=\"onHammer\"\n      hm-rotate=\"onHammer\"\n      hm-swipe=\"onHammer\"\n      hm-tap=\"onHammer\"\n      hm-doubletap=\"onHammer\">\n        {{eventType}}\n    </div>\n    <script type=\"text/javascript\" src=\"./hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"./angular.js\"></script>\n    <script type=\"text/javascript\" src=\"./angular.hammer.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.eventType = \"No events yet\";\n          $scope.onHammer = function onHammer (event) {\n            $scope.eventType = event.type;\n          };\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/raw/dragging.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n        width: 100%;\n        height: 100%;\n      }\n\n      .relpos {\n        position: relative;\n      }\n\n      #target {\n        left: 0;\n        top: 0;\n        width: 500px;\n        height: 500px;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div ng-controller=\"hmCtrl\" hm-dir=\"hm-dir\"></div>\n    <script type=\"text/javascript\" src=\"./hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"./angular.js\"></script>\n    <script type=\"text/javascript\" src=\"./angular.hammer.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.boxMessage = \"Drag me around!\";\n        })\n        .directive('hmDir', function () {\n          return {\n            'restrict' : 'AE',\n            'template' : '<div id=\"target\" hm-panmove=\"onHammer\" class=\"relpos\">{{boxMessage}}</div>',\n            'link' : function (scope, element, attrs) {\n              scope.onHammer = function onHammer (event) {\n                if (event.target === element[0].children[0]) {\n                  var x = event.center.x - 250,\n                      y = event.center.y - 250;\n\n                  scope.boxMessage = '{x:' + x + ', y:' + y + '}';\n\n                  console.log(element.children());\n\n                  element.children().css({\n                    'left' : x + 'px',\n                    'top' : y + 'px'\n                  });\n                }\n              };\n            }\n          }\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/raw/pan.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n\n      .target {\n        display: inline-block;\n        width: 150px;\n        height: 150px;\n        margin: 20px;\n        text-align: center;\n        color: white;\n        background-color: #444;\n      }\n    </style>\n  </head>\n  <body>\n    <h1>An example for each of the Pan-related gestures</h1>\n    <section ng-controller=\"hmCtrl\">\n      <div class=\"target\" hm-pan=\"onHammer\">\n        <div>hmPan</div>\n        <div>{{model.pan.count}} ({{model.pan.time}})</div>\n      </div>\n      <div class=\"target\" hm-panstart=\"onHammer\">\n        <div>hmPanstart</div>\n        <div>{{model.panstart.count}} ({{model.panstart.time}})</div>\n      </div>\n      <div class=\"target\" hm-panmove=\"onHammer\">\n        <div>hmPanmove</div>\n        <div>{{model.panmove.count}} ({{model.panmove.time}})</div>\n      </div>\n      <div class=\"target\" hm-panend=\"onHammer\">\n        <div>hmPanend</div>\n        <div>{{model.panend.count}} ({{model.panend.time}})</div>\n      </div>\n      <div class=\"target\" hm-pancancel=\"onHammer\">\n        <div>hmPancancel</div>\n        <div>{{model.pancancel.count}} ({{model.pancancel.time}})</div>\n      </div>\n      <div class=\"target\" hm-panleft=\"onHammer\">\n        <div>hmPanleft</div>\n        <div>{{model.panleft.count}} ({{model.panleft.time}})</div>\n      </div>\n      <div class=\"target\" hm-panright=\"onHammer\">\n        <div>hmPanright</div>\n        <div>{{model.panright.count}} ({{model.panright.time}})</div>\n      </div>\n      <div class=\"target\" hm-panup=\"onHammer\">\n        <div>hmPanup</div>\n        <div>{{model.panup.count}} ({{model.panup.time}})</div>\n      </div>\n      <div class=\"target\" hm-pandown=\"onHammer\">\n        <div>hmPandown</div>\n        <div>{{model.pandown.count}} ({{model.pandown.time}})</div>\n      </div>\n    </section>\n    <script type=\"text/javascript\" src=\"./hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"./angular.js\"></script>\n    <script type=\"text/javascript\" src=\"./angular.hammer.js\"></script>\n    <script type=\"text/javascript\">\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', ['$scope', function ($scope) {\n          $scope.model = {};\n\n          $scope.onHammer = function onHammer (event) {\n            console.log('I got a pan-related event!', event.type, Date.now());\n            if (!$scope.model[event.type]) {\n              $scope.model[event.type] = {\n                count: 0,\n                time: null\n              };\n            }\n\n            $scope.model[event.type].count += 1;\n            $scope.model[event.type].time = Date.now();\n          };\n        }]);\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/raw/tap.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n\n      .target {\n        display: inline-block;\n        width: 150px;\n        height: 150px;\n        margin: 20px;\n        text-align: center;\n        color: white;\n        background-color: #444;\n      }\n    </style>\n  </head>\n  <body ng-controller=\"hmCtrl\">\n    <h1>An example for each of the Tap-related gestures</h1>\n    <section>\n      <h2>Without preventGhosts</h2>\n      <div class=\"target\" hm-tap=\"onHammer\" ng-click=\"onHammer\">\n        <div>hmTap</div>\n        <div>{{model.tap.count}} ({{model.tap.time}})</div>\n        <div>ngClick</div>\n        <div>{{model.click.count}} ({{model.click.time}})</div>\n      </div>\n      <div class=\"target\" hm-doubletap=\"onHammer\">\n        <div>hmDoubletap</div>\n        <div>{{model.doubletap.count}} ({{model.doubletap.time}})</div>\n        <div>ngClick</div>\n        <div>{{model.click.count}} ({{model.click.time}})</div>\n      </div>\n    </section>\n    <section>\n      <h2>Recognizer-level preventGhosts</h2>\n      <div class=\"target\" hm-tap=\"onHammer\" hm-recognizer-options='{\"type\":\"tap\",\"preventGhosts\":true}'>\n        <div>hmTap</div>\n        <div>{{model.tap.count}} ({{model.tap.time}})</div>\n        <div>ngClick</div>\n        <div>{{model.click.count}} ({{model.click.time}})</div>\n      </div>\n      <div class=\"target\" hm-doubletap=\"onHammer\" hm-recognizer-options='{\"type\":\"tap\", \"event\":\"doubletap\", \"taps\":2, \"preventGhosts\":true}'>\n        <div>hmDoubletap</div>\n        <div>{{model.doubletap.count}} ({{model.doubletap.time}})</div>\n        <div>ngClick</div>\n        <div>{{model.click.count}} ({{model.click.time}})</div>\n      </div>\n    </section>\n    <section>\n      <h2>Manager-level preventGhosts</h2>\n      <div class=\"target\" hm-tap=\"onHammer\" hm-manager-options='{\"preventGhosts\":true}'>\n        <div>hmTap</div>\n        <div>{{model.tap.count}} ({{model.tap.time}})</div>\n        <div>ngClick</div>\n        <div>{{model.click.count}} ({{model.click.time}})</div>\n      </div>\n      <div class=\"target\" hm-doubletap=\"onHammer\" hm-manager-options='{\"preventGhosts\":true}'>\n        <div>hmDoubletap</div>\n        <div>{{model.doubletap.count}} ({{model.doubletap.time}})</div>\n        <div>ngClick</div>\n        <div>{{model.click.count}} ({{model.click.time}})</div>\n      </div>\n    </section>\n    <section>\n      <h2>Recognizer-level stopPropagation</h2>\n      <div class=\"target\" hm-tap=\"onHammer\" hm-recognizer-options='{\"stopPropagation\":true}'>\n        <div>hmTap</div>\n        <div>{{model.tap.count}} ({{model.tap.time}})</div>\n        <div>ngClick</div>\n        <div>{{model.click.count}} ({{model.click.time}})</div>\n      </div>\n      <div class=\"target\" hm-doubletap=\"onHammer\" hm-recognizer-options='{\"stopPropagation\":true}'>\n        <div>hmDoubletap</div>\n        <div>{{model.doubletap.count}} ({{model.doubletap.time}})</div>\n        <div>ngClick</div>\n        <div>{{model.click.count}} ({{model.click.time}})</div>\n      </div>\n    </section>\n    <script type=\"text/javascript\" src=\"./hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"./angular.js\"></script>\n    <script type=\"text/javascript\" src=\"./angular.hammer.js\"></script>\n    <script type=\"text/javascript\">\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', ['$scope', function ($scope) {\n          $scope.model = {};\n\n          $scope.onHammer = function onHammer (event) {\n            console.log('I got a tap-related event!', event.type, Date.now());\n            if (!$scope.model[event.type]) {\n              $scope.model[event.type] = {\n                count: 0,\n                time: null\n              };\n            }\n\n            $scope.model[event.type].count += 1;\n            $scope.model[event.type].time = Date.now();\n          };\n        }]);\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/requirejs/custom.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n      }\n\n      #target {\n        width: 500px;\n        height: 500px;\n        margin-left: auto;\n        margin-right: auto;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"target\"\n      ng-controller=\"hmCtrl\"\n      hm-custom=\"onHammer\"\n      hm-manager-options='{}'\n      hm-recognizer-options='[\n        {\"type\":\"pan\",\"event\":\"twoFingerPan\",\"pointers\":2,\"directions\":\"DIRECTION_ALL\"},\n        {\"type\":\"tap\",\"event\":\"dbltap\",\"pointers\":2,\"taps\":1}\n      ]'\n      >\n        {{eventType}}\n    </div>\n    <script type=\"text/javascript\" src=\"lib/hammerjs/hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"lib/angular/angular.js\"></script>\n    <script type=\"text/javascript\" src=\"angular.hammer.demo.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.eventType = \"No events yet\";\n          $scope.onHammer = function onHammer (event) {\n            $scope.eventType = event.type;\n          };\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/requirejs/default.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n      }\n\n      #target {\n        width: 500px;\n        height: 500px;\n        margin-left: auto;\n        margin-right: auto;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"target\"\n      ng-controller=\"hmCtrl\"\n      hm-pan=\"onHammer\"\n      hm-pinch=\"onHammer\"\n      hm-press=\"onHammer\"\n      hm-rotate=\"onHammer\"\n      hm-swipe=\"onHammer\"\n      hm-tap=\"onHammer\"\n      hm-doubletap=\"onHammer\">\n        {{eventType}}\n    </div>\n    <script type=\"text/javascript\" src=\"lib/hammerjs/hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"lib/angular/angular.js\"></script>\n    <script type=\"text/javascript\" src=\"angular.hammer.demo.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.eventType = \"No events yet\";\n          $scope.onHammer = function onHammer (event) {\n            $scope.eventType = event.type;\n          };\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/requirejs/dragging.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n        width: 100%;\n        height: 100%;\n      }\n\n      .relpos {\n        position: relative;\n      }\n\n      #target {\n        left: 0;\n        top: 0;\n        width: 500px;\n        height: 500px;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div ng-controller=\"hmCtrl\" hm-dir=\"hm-dir\"></div>\n    <script type=\"text/javascript\" src=\"lib/hammerjs/hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"lib/angular/angular.js\"></script>\n    <script type=\"text/javascript\" src=\"angular.hammer.demo.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.boxMessage = \"Drag me around!\";\n        })\n        .directive('hmDir', function () {\n          return {\n            'restrict' : 'AE',\n            'template' : '<div id=\"target\" hm-panmove=\"onHammer\" class=\"relpos\">{{boxMessage}}</div>',\n            'link' : function (scope, element, attrs) {\n              scope.onHammer = function onHammer (event) {\n                if (event.target === element[0].children[0]) {\n                  var x = event.center.x - 250,\n                      y = event.center.y - 250;\n\n                  scope.boxMessage = '{x:' + x + ', y:' + y + '}';\n\n                  console.log(element.children());\n\n                  element.children().css({\n                    'left' : x + 'px',\n                    'top' : y + 'px'\n                  });\n                }\n              };\n            }\n          }\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/requirejs/index.js",
    "content": ""
  },
  {
    "path": "examples/webpack/custom.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n      }\n\n      #target {\n        width: 500px;\n        height: 500px;\n        margin-left: auto;\n        margin-right: auto;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"target\"\n      ng-controller=\"hmCtrl\"\n      hm-custom=\"onHammer\"\n      hm-manager-options='{}'\n      hm-recognizer-options='[\n        {\"type\":\"pan\",\"event\":\"twoFingerPan\",\"pointers\":2,\"directions\":\"DIRECTION_ALL\"},\n        {\"type\":\"tap\",\"event\":\"dbltap\",\"pointers\":2,\"taps\":1}\n      ]'\n      >\n        {{eventType}}\n    </div>\n    <script type=\"text/javascript\" src=\"lib/hammerjs/hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"lib/angular/angular.js\"></script>\n    <script type=\"text/javascript\" src=\"angular.hammer.demo.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.eventType = \"No events yet\";\n          $scope.onHammer = function onHammer (event) {\n            $scope.eventType = event.type;\n          };\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/webpack/default.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n      }\n\n      #target {\n        width: 500px;\n        height: 500px;\n        margin-left: auto;\n        margin-right: auto;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"target\"\n      ng-controller=\"hmCtrl\"\n      hm-pan=\"onHammer\"\n      hm-pinch=\"onHammer\"\n      hm-press=\"onHammer\"\n      hm-rotate=\"onHammer\"\n      hm-swipe=\"onHammer\"\n      hm-tap=\"onHammer\"\n      hm-doubletap=\"onHammer\">\n        {{eventType}}\n    </div>\n    <script type=\"text/javascript\" src=\"lib/hammerjs/hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"lib/angular/angular.js\"></script>\n    <script type=\"text/javascript\" src=\"angular.hammer.demo.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.eventType = \"No events yet\";\n          $scope.onHammer = function onHammer (event) {\n            $scope.eventType = event.type;\n          };\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/webpack/dragging.html",
    "content": "<!doctype html>\n<html ng-app=\"hmTime\">\n  <head>\n    <style type=\"text/css\">\n      html, body {\n        background-color: #d1c9b8;\n        width: 100%;\n        height: 100%;\n      }\n\n      .relpos {\n        position: relative;\n      }\n\n      #target {\n        left: 0;\n        top: 0;\n        width: 500px;\n        height: 500px;\n        vertical-align: middle;\n        text-align: center;\n        color: white;\n        background-color: #444;\n        font-size: 36pt;\n        font-family: 'Futura', 'Avenir', 'Helvetica', sans-serif;\n      }\n    </style>\n  </head>\n  <body>\n    <div ng-controller=\"hmCtrl\" hm-dir=\"hm-dir\"></div>\n    <script type=\"text/javascript\" src=\"lib/hammerjs/hammer.js\"></script>\n    <script type=\"text/javascript\" src=\"lib/angular/angular.js\"></script>\n    <script type=\"text/javascript\" src=\"angular.hammer.demo.js\"></script>\n    <script type=\"text/javascript\">\n      /**\n       * @ngInject\n       */\n      angular.module('hmTime', ['hmTouchEvents'])\n        .controller('hmCtrl', function ($scope) {\n          $scope.boxMessage = \"Drag me around!\";\n        })\n        .directive('hmDir', function () {\n          return {\n            'restrict' : 'AE',\n            'template' : '<div id=\"target\" hm-panmove=\"onHammer\" class=\"relpos\">{{boxMessage}}</div>',\n            'link' : function (scope, element, attrs) {\n              scope.onHammer = function onHammer (event) {\n                if (event.target === element[0].children[0]) {\n                  var x = event.center.x - 250,\n                      y = event.center.y - 250;\n\n                  scope.boxMessage = '{x:' + x + ', y:' + y + '}';\n\n                  console.log(element.children());\n\n                  element.children().css({\n                    'left' : x + 'px',\n                    'top' : y + 'px'\n                  });\n                }\n              };\n            }\n          }\n        });\n    </script>\n  </body>\n</html>"
  },
  {
    "path": "examples/webpack/index.js",
    "content": ""
  },
  {
    "path": "gruntfile.js",
    "content": "module.exports = function (grunt) {\n  grunt.initConfig({\n    pkg: grunt.file.readJSON('package.json'),\n    browserify: {\n      demo: {\n        files: {\n          './examples/browserify/example.js': ['./examples/browserify/index.js']\n        },\n        options: {\n          browserifyOptions: {\n            debug: true\n          }\n        }\n      }\n    },\n    concurrent: {\n      tasks: ['watch:raw','nodemon'],\n      options: {\n        logConcurrentOutput: true\n      }\n    },\n    copy: {\n      raw: {\n        expand: true,\n        flatten: true,\n        src: [\n          './angular.hammer.js',\n          './node_modules/hammerjs/hammer.js',\n          './node_modules/angular/angular.js'\n        ],\n        dest: './examples/raw/'\n      },\n      rawmin: {\n        expand: true,\n        flatten: true,\n        src: [\n          './angular.hammer.min.js',\n          './angular.hammer.min.js.map',\n          './node_modules/angular/angular.min.js',\n          './node_modules/angular/angular.min.js.map',\n          './node_modules/hammerjs/hammer.min.js',\n          './node_modules/hammerjs/hammer.min.js.map'\n        ],\n        dest: './examples/raw/'\n      }\n    },\n    jsdoc : {\n      dist : {\n        src: ['./angular.hammer.js'],\n        dest: './doc',\n        options: {\n          configure: 'jsdoc.json'\n        }\n      }\n    },\n    nodemon: {\n      demo: {\n        script:'server.js',\n        options: {\n          watch: ['./examples']\n        }\n      }\n    },\n    requirejs: {\n    },\n    uglify: {\n      dist: {\n        options: {\n          sourceMap: true,\n          sourceMapName: './angular.hammer.min.js.map',\n          mangle: true,\n          preserveComments: require('uglify-save-license')\n        },\n        files: {\n          './angular.hammer.min.js': './angular.hammer.js'\n        }\n      },\n      browserify: {\n        options: {\n          sourceMap: true,\n          sourceMapName: './examples/browserify/example.min.js.map',\n          mangle: true\n        },\n        files: {\n          './examples/browserify/example.js': ['./examples/browserify/example.js']\n        }\n      }\n    },\n    watch: {\n      js:  {\n        files: ['./angular.hammer.js'],\n        tasks: ['copy']\n      },\n      raw: {\n        files: [\n          './angular.hammer.js',\n          './angular.hammer.min.js'\n        ],\n        tasks: ['copy']\n      }\n    },\n    webpack: {\n    }\n  });\n\n  grunt.loadNpmTasks('grunt-browserify');\n  grunt.loadNpmTasks('grunt-concurrent');\n  grunt.loadNpmTasks('grunt-contrib-copy');\n  grunt.loadNpmTasks('grunt-contrib-requirejs');\n  grunt.loadNpmTasks('grunt-contrib-uglify');\n  grunt.loadNpmTasks('grunt-contrib-watch');\n  grunt.loadNpmTasks('grunt-jsdoc');\n  grunt.loadNpmTasks('grunt-nodemon');\n  grunt.loadNpmTasks('grunt-webpack');\n\n  grunt.registerTask('build', ['uglify:dist', 'jsdoc:dist']);\n  grunt.registerTask('default', ['copy', 'concurrent']);\n  grunt.registerTask('demo-browserify', ['browserify', 'nodemon']);\n  grunt.registerTask('demo-browserify-min', ['browserify', 'uglify:browserify', 'nodemon']);\n  grunt.registerTask('demo-raw', ['copy:raw', 'nodemon']);\n  grunt.registerTask('demo-raw-min', ['copy:rawmin', 'nodemon']);\n}"
  },
  {
    "path": "index.js",
    "content": "module.exports = 'hmTouchEvents';\n\nvar angular = require('angular');\nHammer = require('hammerjs');\nrequire('./angular.hammer')\n"
  },
  {
    "path": "jsdoc.json",
    "content": "{\n  \"plugins\": [\"plugins/markdown\"],\n  \"markdown\": {\n    \"parser\": \"gfm\"\n  }\n}"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"angular-hammer\",\n  \"version\": \"2.2.0\",\n  \"description\": \"Hammer.js support for Angular.js applications\",\n  \"main\": \"index.js\",\n  \"directories\": {\n    \"example\": \"examples\"\n  },\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/RyanMullins/angular-hammer.git\"\n  },\n  \"keywords\": [\n    \"hammer\",\n    \"angular\",\n    \"javascript\",\n    \"touch\",\n    \"gesture\"\n  ],\n  \"author\": \"Ryan S Mullins\",\n  \"contributors\": [\n    \"James Wilson\",\n    \"Alexander Pinnecke\"\n  ],\n  \"license\": \"MIT\",\n  \"bugs\": {\n    \"url\": \"https://github.com/jsdw/angular-hammer/issues\"\n  },\n  \"homepage\": \"http://ryanmullins.github.io/angular-hammer/\",\n  \"dependencies\": {\n      \"angular\": \">=1.2.0\",\n      \"hammerjs\": \">=2.0.0\"\n  },\n  \"devDependencies\": {\n    \"browserify\": \"^8.0.3\",\n    \"browserify-shim\": \"^3.8.2\",\n    \"finalhandler\": \"^0.3.2\",\n    \"grunt\": \"^0.4.5\",\n    \"grunt-browserify\": \"^3.2.1\",\n    \"grunt-concurrent\": \"^1.0.0\",\n    \"grunt-contrib-copy\": \"^0.7.0\",\n    \"grunt-contrib-requirejs\": \"^0.4.4\",\n    \"grunt-contrib-uglify\": \"^0.6.0\",\n    \"grunt-contrib-watch\": \"^0.6.1\",\n    \"grunt-jsdoc\": \"^0.5.7\",\n    \"grunt-nodemon\": \"^0.3.0\",\n    \"grunt-webpack\": \"^1.0.8\",\n    \"serve-static\": \"^1.7.1\",\n    \"uglify-save-license\": \"^0.4.1\",\n    \"webpack\": \"^1.4.15\",\n    \"webpack-dev-server\": \"^1.7.0\"\n  },\n  \"browserify\": {\n    \"transform\": [\n      \"browserify-shim\"\n    ]\n  },\n  \"browser\": {\n    \"angular-hammer\": \"./angular.hammer.js\"\n  },\n  \"browserify-shim\": {\n    \"angular\": {\n      \"exports\": \"angular\"\n    }\n  }\n}\n"
  },
  {
    "path": "server.js",
    "content": "// ---- Modules ----\n\nvar finalhandler = require('finalhandler'),\n    http = require('http'),\n    serveStatic = require('serve-static');\n\n// ---- Local Variables ----\n\nvar serve = serveStatic('examples');\n\n// ---- HTTP Server ----\n\nhttp.createServer(function (req, res) {\n  var done = finalhandler(req, res);\n  serve(req, res, done);\n}).listen(3000);"
  }
]