Re: Another view (sorry) on XBL and behaviours

Andrew Clover wrote:

>  function myclick(e) {
>    alert('You clicked on a <div class="foo">!');
>  }
>
>  function binder(e) {
>    if (e.type=='bind')
>      e.target.addEventListener('click', myclick, false);
>    if (e.type=='unbind')
>      e.target.removeEventListener('click', myclick);
>  }
>
>  document.addSelectorListener('div.foo', binder);
>

That's just another way of saying

div. foo {
  onclick: "myclick";
}

isn't it ?

And that's exactly Action Sheets...

</Daniel>

Received on Tuesday, 7 January 2003 09:26:17 UTC