Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

…and add custom functions an variables can exist a a and variables as members of that object…

Code Block
dfa.myVar = 'This is my variable';
dfa.myFunction = function() {...};

...

Info

It is perfectly fine to use namespacing and IIFEs together, although that is a bit of a belt-and-suspenders scenario.

Note

SUPER IMPORTANT - DON’T MESS WITH THE scpa GLOBAL OBJECT

scpa is the namespace used by the

...

template itself. If you touch that object in any way with your code. the Earth may very well stop spinning and we’d all be doomed. Hands off.