pastebin

Paste Search Dynamic
Recent pastes
sorttable
  1. sorttable = {
  2.   init: function() {
  3.     // quit if this function has already been called
  4.     if (arguments.callee.done) return;
  5.     // flag this function so we don't do the same thing twice
  6.     arguments.callee.done = true;
  7.     // kill the timer
  8.     if (_timer) clearInterval(_timer);
  9.    
  10.     if (!document.createElement || !document.getElementsByTagName) return;
  11.    
  12.     sorttable.DATE_RE = /^(dd?)[/.-](dd?)[/.-]((dd)?dd)$/;
  13.    
  14.     forEach(document.getElementsByTagName('table'), function(table) {
  15.       if (table.className.search(/bsortableb/) != -1) {
  16.         sorttable.makeSortable(table);
  17.       }
  18.     });
  19.    
  20.   },
Parsed in 0.009 seconds