Refixed hammer

This commit is contained in:
Max Lynch
2015-05-16 21:12:22 +02:00
parent 5ca4b717d6
commit 667db19324
3 changed files with 2475 additions and 5 deletions

View File

@@ -1,4 +1,8 @@
import {Component, View, Inject, Parent, NgElement, EventEmitter} from 'angular2/angular2'
import {ElementRef, Inject, Parent, EventEmitter} from 'angular2/angular2'
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view';
import * as types from 'ionic/components/aside/extensions/types'
import * as gestures from 'ionic/components/aside/extensions/gestures'
import {dom} from 'ionic/util'
@@ -21,9 +25,9 @@ import {IonicComponent} from 'ionic/config/component'
})
export class Aside {
constructor(
@NgElement() element: NgElement
elementRef: ElementRef
) {
this.domElement = element.domElement
this.domElement = elementRef.domElement
// FIXME(ajoslin): have to wait for setTimeout for bindings to apply.
setTimeout(() => {

View File

@@ -1,5 +1,5 @@
import * as util from 'ionic/util';
//import Hammer from 'hammer';
import {Hammer} from 'ionic/gestures/hammer';
export class Gesture {
constructor(element, opts = {}) {
@@ -45,4 +45,3 @@ export class Gesture {
this.unlisten()
}
}

2467
ionic/gestures/hammer.js Normal file
View File

File diff suppressed because it is too large Load Diff