Commit 604f068f authored by Stefan Penner's avatar Stefan Penner

Merge pull request #96 from jamesarosen/james/addEventListener

async: use three args for addEventListener
parents 54e7bf00 1c883635
...@@ -41,7 +41,7 @@ function useMutationObserver() { ...@@ -41,7 +41,7 @@ function useMutationObserver() {
window.addEventListener('unload', function(){ window.addEventListener('unload', function(){
observer.disconnect(); observer.disconnect();
observer = null; observer = null;
}); }, false);
return function(callback, arg) { return function(callback, arg) {
queue.push([callback, arg]); queue.push([callback, arg]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment