mirror of
https://github.com/nasa/openmct.git
synced 2025-06-23 01:18:57 +00:00
[Mobile, Gestures] Pinch/Pan
Made unbind call more DRY.
This commit is contained in:
@ -73,9 +73,7 @@ define(
|
|||||||
element.off('touchstart', panAction);
|
element.off('touchstart', panAction);
|
||||||
element.off('touchmove', panAction);
|
element.off('touchmove', panAction);
|
||||||
element.off('touchend', panAction);
|
element.off('touchend', panAction);
|
||||||
element.unbind('touchstart');
|
element.unbind();
|
||||||
element.unbind('touchmove');
|
|
||||||
element.unbind('touchend');
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -81,9 +81,7 @@ define(
|
|||||||
element.off('touchstart', pinchAction);
|
element.off('touchstart', pinchAction);
|
||||||
element.off('touchmove', pinchAction);
|
element.off('touchmove', pinchAction);
|
||||||
element.off('touchend', pinchAction);
|
element.off('touchend', pinchAction);
|
||||||
element.unbind('touchstart');
|
element.unbind();
|
||||||
element.unbind('touchmove');
|
|
||||||
element.unbind('touchend');
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user