We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Methods related to jQuery.device.* are deprecated. Therefore an autofix should be offered by UI5 linter.
jQuery.device.*
Deprecated APIs:
var isLandscape = jQuery.device.is.landscape; var isPortait = jQuery.device.is.portrait; var isDesktop = jQuery.device.is.desktop; var isPhone = jQuery.device.is.phone; var isTablet = jQuery.device.is.tablet; var isAndroidPhone = jQuery.device.is.android_phone; var isAndroidTablet = jQuery.device.is.android_tablet; var isIPhone = jQuery.device.is.iphone; var isIPad = jQuery.device.is.ipad;
sap.ui.define([ "sap/ui/Device" ], (Device) => { var isLandscape = Device.orientation.landscape; var isPortait = Device.orientation.portrait; var isDesktop = Device.system.desktop; var isPhone = Device.system.phone; var isTablet = Device.system.tablet; var isAndroidPhone = Device.os.android && Device.system.phone; var isAndroidTablet = Device.os.android && Device.system.tablet; var isIPhone = Device.os.ios && Device.system.phone; var isIPad = Device.os.ios && Device.system.ipad; });
The text was updated successfully, but these errors were encountered:
Will be implemented in CPOUI5FOUNDATION-990.
Sorry, something went wrong.
No branches or pull requests
Missing autofix for methods related to jQuery.device.*
Methods related to
jQuery.device.*
are deprecated. Therefore an autofix should be offered by UI5 linter.Deprecated APIs:
Deprecated Usage
Recommended Usage
The text was updated successfully, but these errors were encountered: