{"issue":{"state":"open","created_at":"2011-12-05T17:42:13Z","updated_at":"2011-12-06T13:49:18Z","user":{"gravatar_id":"78ba5b1e9091d87666a135b3d63d3734","id":973643,"url":"https://api.github.com/users/termi1uc1","login":"termi1uc1","avatar_url":"https://secure.gravatar.com/avatar/78ba5b1e9091d87666a135b3d63d3734?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":4,"body":"https://bugzilla.mozilla.org/show_bug.cgi?id=428229\r\n\r\n\"node.addEventListener('event', function)\" throw Error in FF 3.6\r\n shim doesn't work\r\n\r\nAny suggestions?","assignee":null,"id":2452169,"number":33,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"FF 3.6 Unable to override addEventListener","html_url":"https://github.com/Raynos/DOM-shim/issues/33","closed_at":null,"url":"https://api.github.com/repos/Raynos/DOM-shim/issues/33","milestone":null},"action":"created","comment":{"created_at":"2011-12-06T13:49:18Z","updated_at":"2011-12-06T13:49:18Z","user":{"gravatar_id":"d840cb1fb7e828284011cc08f40a1015","id":479538,"url":"https://api.github.com/users/Raynos","login":"Raynos","avatar_url":"https://secure.gravatar.com/avatar/d840cb1fb7e828284011cc08f40a1015?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Then its a problem with not having a bug fixed in this.\r\n\r\nWhat I need to do is add something like \r\n\r\n\r\n// FF fails when you \"forgot\" the optional parameter\r\n(function () {\r\n    var dummy = function () {};\r\n    try {\r\n        document.addEventListener(\"click\", dummy);\r\n    } catch (e) {\r\n        var old = EventTarget.prototype.addEventListener;\r\n        domShim.utils.addPropsToProto(\r\n            {\r\n                \"addEventListener\": {\r\n                    value: function (type, listener, optional) {\r\n                        optional = optional || false;\r\n                        return old.call(this, type, listener, optional);\r\n                    },\r\n                    force: true\r\n                }\r\n            },\r\n            EventTarget.prototype\r\n        );\r\n    } finally {\r\n        document.removeEventListener(\"click\", dummy);\r\n    }\r\n})();","id":3032408,"url":"https://api.github.com/repos/Raynos/DOM-shim/issues/comments/3032408"}}