It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Can someone teach me the use of object : function (args)

Can someone teach me the use of object : function (args)

Postby padib on Mon Jun 29, 2009 11:43 pm

Hi, I'm reading some code from the Thunderbird source, and I can't figure out what this syntax means:

Code: Select all
var messageHeaderSink = {

  (Snipped Code)

  handleAttachment:
    function(contentType, url, displayName, uri, isExt)     
    {
      (body)
    }

  (Snipped Code)


};

It's in the form name : function (args).
Is it a class method?
padib
 
Posts: 1
Joined: Mon Jun 29, 2009 11:25 pm

Who is online

Users browsing this forum: No registered users and 5 guests