3.2.0

A small general question on JavaScript

Hi

Looking through the site.js used in the examples I saw that some variables (such as header or footer) are defined with e.g. var $header...

What intrigues me is, does that $ sign mean something special in Javascript? I'm not a JS expert but I had not seen this previously anywhere else.

Thank you.
Gonzalo
April 13,
No, there is no special meaning for $ symbol. I am using $ and _ prefixes in ActiveWidgets to indicate that variable or method is 'private'.

I don't really recommend looking at site.js at all :-)
Alex (ActiveWidgets)
April 13,
Ok, I imagined as much, that it was just a personal coding convention. but just to be sure.

Thank you :)
Gonzalo
April 14,

This topic is archived.

See also:


Back to support forum