[Mobile, Gestures] Pinch/Pan

Made unbind call more DRY.
This commit is contained in:
Shivam Dave 2015-08-07 14:52:23 -07:00
parent cac97401c6
commit 00aa7ce0c2
2 changed files with 2 additions and 6 deletions

View File

@ -73,9 +73,7 @@ define(
element.off('touchstart', panAction);
element.off('touchmove', panAction);
element.off('touchend', panAction);
element.unbind('touchstart');
element.unbind('touchmove');
element.unbind('touchend');
element.unbind();
}
};
}

View File

@ -81,9 +81,7 @@ define(
element.off('touchstart', pinchAction);
element.off('touchmove', pinchAction);
element.off('touchend', pinchAction);
element.unbind('touchstart');
element.unbind('touchmove');
element.unbind('touchend');
element.unbind();
}
};
}