diff --git a/angular/src/providers/menu-controller.ts b/angular/src/providers/menu-controller.ts index ffc47cb9a5..aab98b1592 100644 --- a/angular/src/providers/menu-controller.ts +++ b/angular/src/providers/menu-controller.ts @@ -59,9 +59,21 @@ export class MenuController { * @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): Promise { - return proxyMethod(CTRL, this.doc, 'swipeEnable', shouldEnable, menuId); + console.warn('MenuController.swipeEnable is deprecated. Use MenuController.swipeGesture() instead'); + return this.swipeGesture(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. + */ + swipeGesture(shouldEnable: boolean, menuId?: string): Promise { + return proxyMethod(CTRL, this.doc, 'swipeGesture', shouldEnable, menuId); } /**