We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 791afab + f27e06c commit 985731fCopy full SHA for 985731f
1 file changed
microsoft-edge/devtools-guide-chromium/memory-problems/heap-snapshots.md
@@ -265,10 +265,9 @@ The heap profiler has the ability to reflect bidirectional dependencies between
265
DOM leaks may be bigger than you think. Consider the following sample. When is the `#tree` garbage-collected?
266
267
```javascript
268
-var select = document.querySelector;
269
-var treeRef = select("#tree");
270
-var leafRef = select("#leaf");
271
-var body = select("body");
+var treeRef = document.querySelector("#tree");
+var leafRef = document.querySelector("#leaf");
+var body = document.querySelector("body");
272
273
body.removeChild(treeRef);
274
0 commit comments