UNPKG

1.73 kBJavaScriptView Raw
1var __extends = (this && this.__extends) || (function () {
2 var extendStatics = Object.setPrototypeOf ||
3 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5 return function (d, b) {
6 extendStatics(d, b);
7 function __() { this.constructor = d; }
8 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9 };
10})();
11import { Injectable } from '@angular/core';
12import { HammerGestureConfig } from '@angular/platform-browser';
13/**
14 * @hidden
15 * This class overrides the default Angular gesture config.
16 */
17var IonicGestureConfig = (function (_super) {
18 __extends(IonicGestureConfig, _super);
19 function IonicGestureConfig() {
20 return _super !== null && _super.apply(this, arguments) || this;
21 }
22 /**
23 * @param {?} element
24 * @return {?}
25 */
26 IonicGestureConfig.prototype.buildHammer = function (element) {
27 var /** @type {?} */ mc = new ((window)).Hammer(element);
28 for (var /** @type {?} */ eventName in this.overrides) {
29 mc.get(eventName).set(this.overrides[eventName]);
30 }
31 return mc;
32 };
33 return IonicGestureConfig;
34}(HammerGestureConfig));
35export { IonicGestureConfig };
36IonicGestureConfig.decorators = [
37 { type: Injectable },
38];
39/**
40 * @nocollapse
41 */
42IonicGestureConfig.ctorParameters = function () { return []; };
43function IonicGestureConfig_tsickle_Closure_declarations() {
44 /** @type {?} */
45 IonicGestureConfig.decorators;
46 /**
47 * @nocollapse
48 * @type {?}
49 */
50 IonicGestureConfig.ctorParameters;
51}
52//# sourceMappingURL=gesture-config.js.map
\No newline at end of file