Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: stats.js

Issue 29460566: Noissue - Remove DOMContentLoaded listeners after they've fired (Closed)
Patch Set: Created June 9, 2017, 1:25 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « popup.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: stats.js
diff --git a/stats.js b/stats.js
index 88a472d3deacc2f70f220fb3ee42de6d4d30cd74..cdd14f7aa6c4b3fcb3ee73e9ebaff630690a2b11 100644
--- a/stats.js
+++ b/stats.js
@@ -94,6 +94,8 @@
document.getElementById("stats-container").removeAttribute("hidden");
});
+
+ document.removeEventListener("DOMContentLoaded", onLoad);
}
function onUnload()
« no previous file with comments | « popup.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld