Using !== for objects comparison

This commit is contained in:
notmasteryet 2011-09-23 06:58:54 -05:00
parent f3e4cf20cc
commit ba74e56c35

View File

@ -58,7 +58,7 @@ function cleanup() {
} }
var guard = document.getElementById('content-end'); var guard = document.getElementById('content-end');
var body = document.body; var body = document.body;
while (body.lastChild != guard) while (body.lastChild !== guard)
body.removeChild(body.lastChild); body.removeChild(body.lastChild);
} }