Expand Minimize

Variable names considered reserved for SharePoint

Some variable names are considered reserved in SharePoint Context

CheckId SPC038903
TypeName ReservedWordsInSharePointJS
Severity Warning
Type JavaScriptFile

Bad Practice

var ctx = getContextForWeb(webUrl);

Good Practice
// Note when minified the Namespace will be renamed by some minifiers
ComponentNamespace.ctx = ComponentNameSpace.getContextForWeb(ComponentNameSpace.webUrl);

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.