mirror of
https://github.com/nasa/openmct.git
synced 2025-04-23 18:33:46 +00:00
[Mobile, Gestures] Pinch/Pan
Made unbind call more DRY.
This commit is contained in:
parent
cac97401c6
commit
00aa7ce0c2
@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user