mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Refixed hammer
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
@@ -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
2467
ionic/gestures/hammer.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user