refactor(): remove deprecated swipeEnable (#19526)

This commit is contained in:
Liam DeBeasi
2019-10-02 11:24:37 -04:00
committed by Brandy Carney
parent ac4f254a4f
commit 1b9d61bfa8

View File

@ -48,18 +48,6 @@ export class MenuController {
return menuController.enable(shouldEnable, menuId); return menuController.enable(shouldEnable, menuId);
} }
/**
* Used to enable or disable the ability to swipe open the menu.
* @param shouldEnable True if it should be swipe-able, false if not.
* @param [menuId] Optionally get the menu by its id, or side.
* @return Returns the instance of the menu, which is useful for chaining.
* @deprecated Use swipeGesture() instead.
*/
swipeEnable(shouldEnable: boolean, menuId?: string) {
console.warn('[DEPRECATED][ion-menu-controller] swipeEnable() is deprecated. Use MenuController.swipeGesture() instead');
return this.swipeGesture(shouldEnable, menuId);
}
/** /**
* Used to enable or disable the ability to swipe open the menu. * Used to enable or disable the ability to swipe open the menu.
* @param shouldEnable True if it should be swipe-able, false if not. * @param shouldEnable True if it should be swipe-able, false if not.