Skip to content
Snippets Groups Projects
Commit 63f6f18e authored by Seamus Lee's avatar Seamus Lee
Browse files

Minor improvements to javascript doc

parent a7c50bee
No related branches found
No related tags found
1 merge request!246Minor improvements to javascript doc
...@@ -12,7 +12,7 @@ Example to tell JSHint Tell jsHint about any globals in use: ...@@ -12,7 +12,7 @@ Example to tell JSHint Tell jsHint about any globals in use:
/*global CRM, ts */ /*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 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
......
...@@ -210,7 +210,7 @@ pages: ...@@ -210,7 +210,7 @@ pages:
- Coding Standards: standards/index.md - Coding Standards: standards/index.md
- PHP Standards: standards/php.md - PHP Standards: standards/php.md
- SQL Standards: standards/sql.md - SQL Standards: standards/sql.md
- Javascript: standards/javascript.md - Javascript Reference: standards/javascript.md
# API: standards/api.md # API: standards/api.md
# Git: standards/git.md # Git: standards/git.md
- Documentation: - Documentation:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment