Go to Google Groups Home    Low Pro
Re: addBehaviour doesn't seem to work in Safari 4 beta

Ant <email2a...@gmail.com>

I've checked and re-checked this. I think the above is true. I have
had to resort to the debug JS below which works

document.observe("dom:loaded", function() {
  // the element in which we will observe all clicks and capture
  // ones originating from pagination links
  var container = $(document.body);

  if (container) {
    container.observe('click', function(e) {
      var el = e.element();
      if (el.match('a')) {
        alert("click");
      }
    });
  }

});