イベント登録なんかの場合を例としてみると、、 [before] var addEvent = function(element, type, func) { if(window.addEventListener) { element.addEventListener(type, func, false); } else { element.attachEvent('on' + type, func); } } [after] var addEvent = (window.addEventListener ? function(element, type, func) { element.addEventListener(type, func, false); } : function(element, type, func) { element.attachEvent('on' + typ