The JS global environment in a browser is window. Element just doesn't exist in IE<=8. You can't just lift addEventListener from window either. IE and Safari's window.addEventListener != Element.prototype.addEventListener.

Sent from my iPhone

> On 5 Mar, 2014, at 4:57 am, Adam Krebs <notifications@github.com> wrote:
> 
> In test/view.js:
> 
> > @@ -379,9 +379,13 @@
> >    });
> >  
> >    // Cross-browser helpers
> > -  var addEventListener = Element.prototype.addEventListener || function(eventName, listener) {
> > -    return this.attachEvent('on' + eventName, listener);
> > -  };
> > +  function addEventListener(el, eventName, listener, useCapture) {
> Then how about window.Element && Element.prototype... or typeof Element !== 'undefined' && Element.prototype...
> 
> —
> Reply to this email directly or view it on GitHub.