Using !== for objects comparison
This commit is contained in:
parent
f3e4cf20cc
commit
ba74e56c35
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user