123
reputation
3

pure_code

The line between opinion and fact needs a huge guardband!

I only support modern browsers so that I don't have to read quirks-mode articles.

Code Bin

function addEvent (element, type, callback) {
    if (element.addEventListener) { 
        element.addEventListener(type, callback); 
    } else if (element.attachEvent) { 
        element.attachEvent("on" + type, callback); 
    } else {
        $.error('addEvent: no event system')
    }
}
0
answers
1
question
~892
people reached
  • Member for 7 years, 6 months
  • 5 profile views
  • Last seen Feb 15 '13 at 20:08

Top tags (3)

Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (1)

Badges (3)

Gold

Silver

Bronze

3

Rarest