collection3: remove unused variable
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 13 Aug 2019 09:25:09 +0000 (11:25 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 13 Aug 2019 09:25:09 +0000 (11:25 +0200)
contrib/collection3/share/navigate.js

index 3bfe56e..0cf1513 100644 (file)
@@ -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)
   {