...

View Full Version : what does this $$ mean?



smurf
10-07-2008, 06:09 AM
I'm reading through some javascript tutorials when I encounter this part of codes:

...
if (! handler.$$guid) handler.$$guid = addEvent.guid++;
...

what does the "$$" mean?

pros, please help!

liorean
10-07-2008, 06:13 AM
It's just two characters that are part of the property name, like any other characters. IIRC $ is supposed to only be used for machine code or mechanical translation purposes according to the ECMAScript spec, but they do not behave in any way different from any other character that is allowed in an identifier, and many libraries - AJAX or otherwise - have begun using them all over the place.

smurf
10-07-2008, 07:23 AM
It's just two characters that are part of the property name, like any other characters. IIRC $ is supposed to only be used for machine code or mechanical translation purposes according to the ECMAScript spec, but they do not behave in any way different from any other character that is allowed in an identifier, and many libraries - AJAX or otherwise - have begun using them all over the place.

Thanks!

rhinodog8
10-07-2008, 09:50 AM
$$ is part of the javascript prototype framework(idk about other frameworks)

Heres a link. (http://prototypejs.org/api/utility/dollar-dollar)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum