Created
June 28, 2011 17:22
-
-
Save toolness/1051654 to your computer and use it in GitHub Desktop.
Add-on SDK bug whereby EventListener interfaces passed to addEventListener() don't get properly wrapped/proxied events
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myListener = { | |
handleEvent: function(event) { | |
// This produces e.g. [object XrayWrapper [object HTMLHtmlElement]], | |
// instead of [object HTMLHtmlElement]. | |
console.log(event.target); | |
} | |
}; | |
document.addEventListener("mouseover", myListener, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment