js/core/js/sccore.js
// Cross browser add and remove event facilities (from John Resig) via the quirksmode.org competition
Cross browser add and remove event facilities (from John Resig) via the quirksmode.org competition
Cross browser add and remove event facilities ( from John Resig ) via the quirksmode . org competition
function sc_addEventListener( obj, type, fn ) {
  if ( obj.attachEvent ) {
    obj['e'+type+fn] = fn;
    obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
    obj.attachEvent( 'on'+type, obj[type+fn] );
  } else
    obj.addEventListener( type, fn, false );
}
function sc_addEventListener ( obj , type , fn ) { if ( obj . attachEvent ) { obj [ 'e' + type + fn ] = fn ; obj [ type + fn ] = function ( ) { obj [ 'e' + type + fn ] ( window . event ) ; } obj . attachEvent ( 'on' + type , obj [ type + fn ] ) ; } else obj . addEventListener ( type , fn , false ) ; }
Cross browser add and remove event facilities (from John Resig) via the quirksmode.org competition
Cross browser add and remove event facilities ( from John Resig ) via the quirksmode . org competition