Skip to content

Latest commit

 

History

History
17 lines (8 loc) · 785 Bytes

javascript-coding-guidelines-eded636.md

File metadata and controls

17 lines (8 loc) · 785 Bytes

JavaScript Coding Guidelines

Provides an overview of the guidelines for JavaScript coding for OpenUI5.

For JavaScript, the following general guidelines apply:

  • Do not use global JavaScript variables. For more information, see Modules and Dependencies.

  • Do not access internal (private) members of other objects.

  • Do not use the browser-native console object to produce a console output. Use the sap/base/log module and its respective methods to create log entries.

  • Do not override OpenUI5 code (JavaScript, CSS, etc.). Such modifications may break parts of other OpenUI5 projects.