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

Broken example in section 5.1: update is not defined

From: Sergey <castonet@yahoo.co.uk>
Date: Fri, 23 Nov 2007 08:56:32 +0000 (GMT)
To: public-appformats@w3.org
Message-ID: <288148.37986.qm@web26907.mail.ukl.yahoo.com>

The example provided in the section "5.1. The
XBLImplementation Interface" seems to be broken.

<xbl xmlns="http://www.w3.org/ns/xbl">
 <binding id="clock">
  <implementation>
   ({
    xblEnteredDocument: function () {
      this.timer = setInterval(update, 1000);
    },
    xblLeftDocument: function () {
      clearInterval(this.timer);
    },
    update: function () {
     
this.shadowTree.getElementById('clock-value').textContent
= new Date();
    },
   })
  </implementation>
  <template><div id="clock-value"></div></template>
 </binding>
</xbl>

The reference to "update" function expected, but there
is no one declared (there is only implementation
member with such name). 
JS Error: update is not defined

Sergey Ilinsky/



      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  http://uk.promotions.yahoo.com/forgood/environment.html
Received on Friday, 23 November 2007 12:21:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:50:08 UTC