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

Unified Diff: popup.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 | « no previous file | stats.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: popup.js
diff --git a/popup.js b/popup.js
index 6675434534f74aff00029f555356bf716efd392a..7e6f5d5217dcffabb34c2d7bdbaffefdab756b98 100644
--- a/popup.js
+++ b/popup.js
@@ -91,6 +91,8 @@ function onLoad()
).classList.add("collapsed");
}
}
+
+ document.removeEventListener("DOMContentLoaded", onLoad);
}
function toggleEnabled()
« no previous file with comments | « no previous file | stats.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld