Cyril, That is standard notation for ECMAScript. Try it in your browser: <html> <script> test = ({ functionName: function() { alert("test"); } }) test.functionName(); </script> </html> I think it is beyond the scope of the XBL spec to contain such definitions. Please let us know if you are satisfied with this response. Regards, Marcos -----Original Message----- From: public-appformats-request@w3.org [mailto:public-appformats-request@w3.org] On Behalf Of Cyril Concolato Sent: Thursday, 7 December 2006 2:01 AM To: WAF WG (public) Subject: [XBL] ECMAScript Syntax Dear XBL experts, This email comments on the 7 September 2006 LCWD of XBL 2.0. In many examples in the specification, in particular in Section 2.3, a syntax for ECMAScript definition of functions is used: <implementation> ({ functionName: function() { } }) </implementation> Is this standard ECMAScript notation ? Could you explain it or provide a link to it ? What is the meaning of "({" ? The get/set fonction in that section don't use the ':' ? Is it a typo ? If yes please fix it, otherwise highlight and explain this difference with the other functions. Cyril ConcolatoReceived on Wednesday, 6 December 2006 17:41:10 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:20 GMT