W3C home > Mailing lists > Public > public-appformats@w3.org > January 2007

[XBL] Use of "public"

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 24 Jan 2007 09:30:27 +1100
To: public-appformats@w3.org
Message-ID: <20070123223027.GD14539@arc.mcc.id.au>

Hi.

In ECMA-262 3rd ed, “public” is a reserved word, which means it will be
annoying to refer to the public object from an implementation object’s
methods:

  <implementation>
    ({
      xblBindingAttached: function() {
        this['public'].x = 5;
      }
    })
  </implementation>

I suggest a different property name be used for the public object.

Thanks,

Cameron

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au
Received on Tuesday, 23 January 2007 22:30:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:21 GMT