X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fcollection3%2Fshare%2Fnavigate.js;h=0cf15132694922b43f6321f80d8f3b1e8c32f4c4;hb=master;hp=3bfe56ed3d2580f1d9a38cdfe347d8a25a79d227;hpb=efa4700ad47969749b0fca622294fd006b2d7cb8;p=collectd.git diff --git a/contrib/collection3/share/navigate.js b/contrib/collection3/share/navigate.js index 3bfe56ed..0cf15132 100644 --- a/contrib/collection3/share/navigate.js +++ b/contrib/collection3/share/navigate.js @@ -183,12 +183,11 @@ function nav_calculate_offset_x (obj) function nav_calculate_event_x (e) { var pos = 0; - var off = 0; if (!e || !e.target) return; - off = nav_calculate_offset_x (e.target); + nav_calculate_offset_x (e.target); if (e.pageX || e.pageY) {