Skip to content

Instantly share code, notes, and snippets.

View gabskoro's full-sized avatar

Gabrijel Škoro gabskoro

View GitHub Profile
;[Element].forEach(function(self){
self.prototype.eventListenerList = {};
self.prototype._addEventListener = self.prototype.addEventListener;
self.prototype.addEventListener = function(type, handle, useCapture) {
useCapture = useCapture === void 0 ? false : useCapture;
var node = this;
node._addEventListener(type, handle, useCapture);