From: "Paul Wilkins" <[EMAIL PROTECTED]>
It might start to look something like this

// beware, untested code, dragons may be lurking
ahah = {
 init : function() {
   var els = document.getElementsByTagName('a');
   Array.forEach(els, function(el) {
     var href = el.getAttribute('href');
     var id = 'ahah-' + el.getAttribute('id');
     addEvent(el, 'click', '');
   });
 },
 get : function(url, target, delay) {
  // code as per normal
 }
};

How close would something like this get to cleaning things up?

--
Paul Wilkins

_______________________________________________
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss

Reply via email to