Closed yuanzhou closed 8 years ago
@yuanzhou , this looks much better.
Please try find some time to put some design comments into the coding describing what you're doing with the tooltips and crosshairs, particularly for any of the non-obvious parts. thanks.
@harryhoch will add the design comments. Thanks!
Addressed issue #205 by adding matching highlighting and crossharis on tooltip mouseover and removing those effects on tooltip mouseleave.
This PR also cleans up how labels highlighting and crosshairs are called/used by refactoring the function calls. Also used jquery-ui's
_on
and_off
for event handler attachment management, which maintains the properthis
context inside the handlers so we don't need to usevar self = this;
@harryhoch please check this out and test. I think it's good to be merged. Thanks!