diff --git a/docs/standards/javascript.md b/docs/standards/javascript.md index af7a7a03d40530883bbac845b884ce0bb5065fcd..61eebe396f4f58a3e145455ceca0fef60cac3ceb 100644 --- a/docs/standards/javascript.md +++ b/docs/standards/javascript.md @@ -12,7 +12,7 @@ Example to tell JSHint Tell jsHint about any globals in use: /*global CRM, ts */ ``` -### globals +### Globals Declaring a global variable/function is a bad practice in Javascript unless absolutely necessary. Your code should never create globals. In the rare cases that you need to declare variables or functions outside the local scope of your closure, create a namespace within the CRM object diff --git a/mkdocs.yml b/mkdocs.yml index c91c8ad64a6b01c1e6380c7571253e49db286ea7..c0b136f0bef0cb7a6bcfc937af69d379d945b3d0 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -210,7 +210,7 @@ pages: - Coding Standards: standards/index.md - PHP Standards: standards/php.md - SQL Standards: standards/sql.md - - Javascript: standards/javascript.md + - Javascript Reference: standards/javascript.md # API: standards/api.md # Git: standards/git.md - Documentation: