chore(): fix typescript errors

This commit is contained in:
Adam Bradley
2016-01-11 21:10:19 -06:00
parent 29c572d41f
commit 44cbbd286b
7 changed files with 83 additions and 65 deletions

View File

@@ -38,11 +38,11 @@ export class ItemSlidingGesture extends DragGesture {
};
}
onDragStart(ev) {
onDragStart(ev): boolean {
let itemContainerEle = getItemConatiner(ev.target);
if (!itemContainerEle) {
console.debug('onDragStart, no itemContainerEle');
return;
return false;
}
this.closeOpened(itemContainerEle);
@@ -63,6 +63,8 @@ export class ItemSlidingGesture extends DragGesture {
this.set(itemContainerEle, 'startX', ev.center[this.direction]);
this.dragEnded = false;
return true;
}
onDrag(ev) {