News

Log In Sponsors
Partner Sites





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



Hi, I'm reading some code from the Thunderbird source, and I can't figure out what this syntax means: [code:irxarcch]var messageHeaderSink = { (Snipped Code) handleAttachment: function(contentType, url, displayName, uri, isExt) { (body) } (Snipped Code) };[/code:irxarcch] It's in the form [b:irxarcch][i:irxarcch]name : function (args)[/i:irxarcch][/b:irxarcch]. Is it a class method?

Click here to read the whole forum topic