| DEVPPL http://www.devppl.com/forum/ |
|
| Can someone teach me the use of object : function (args) http://www.devppl.com/forum/viewtopic.php?f=49&t=13744 |
Page 1 of 1 |
| Author: | padib [ Tue Jun 30, 2009 12:43 am ] |
| Post subject: | 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: 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? |
|
| Page 1 of 1 | All times are UTC + 1 hour |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|