Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question what does this $$ mean?

    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!

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    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.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by liorean View Post
    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!

  • #4
    New Coder
    Join Date
    Aug 2008
    Location
    Colfax, California USA
    Posts
    64
    Thanks
    3
    Thanked 5 Times in 5 Posts
    $$ is part of the javascript prototype framework(idk about other frameworks)

    Heres a link.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •