Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Jun 27, 2015
1 parent de585d0 commit 8f2c10a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/samples/hover/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ This sample requires PV 1.7.0 and higher to work as it relies on functionality t
if (picked) {
var atom = picked.target();
document.getElementById('picked-atom-name').innerHTML = atom.qualifiedName();
// set color of current picked atom to red and store the current color so we
// know what it was.
// get RGBA color and store in the color array, so we know what it was
// before changing it to the highlight color.
var color = [0,0,0,0];
// get RGBA color and store in the color array.
picked.node().getColorForAtom(atom, color);
prevPicked = { atom : atom, color : color, node : picked.node() };

setColorForAtom(picked.node(), atom, 'red');
} else {
document.getElementById('picked-atom-name').innerHTML = ' ';
Expand Down

0 comments on commit 8f2c10a

Please sign in to comment.