Skip to content

Commit

Permalink
use !== everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Jun 27, 2015
1 parent 8f2c10a commit d7e1e01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/samples/hover/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ This sample requires PV 1.7.0 and higher to work as it relies on functionality t
var rect = viewer.boundingClientRect();
var picked = viewer.pick({ x : event.clientX - rect.left,
y : event.clientY - rect.top });
if (prevPicked !== null && picked != null &&
if (prevPicked !== null && picked !== null &&
picked.target() === prevPicked.atom) {
return;
}
if (prevPicked !== null) {
// reset color of previously picked atom.
setColorForAtom(prevPicked.node, prevPicked.atom, prevPicked.color);
}
if (picked) {
if (picked !== null) {
var atom = picked.target();
document.getElementById('picked-atom-name').innerHTML = atom.qualifiedName();
// get RGBA color and store in the color array, so we know what it was
Expand Down

0 comments on commit d7e1e01

Please sign in to comment.