[Pkg-javascript-commits] [d3-tip.js] 178/277: semicolon apocalypse

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

bhuvan-guest pushed a commit to branch master
in repository d3-tip.js.

commit 8d1a32596c62414777768ea5ea6c76428b050a8c
Author: Justin Palmer <justin at github.com>
Date:   Thu Sep 19 11:08:39 2013 -0700

    semicolon apocalypse
---
 src/d3.tip.js | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/src/d3.tip.js b/src/d3.tip.js
index 5ec2025..b4ebbcf 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -12,7 +12,7 @@ d3.tip = function() {
       html      = d3_tip_html,
       node      = initNode(),
       svg       = null,
-      point     = null;
+      point     = null
 
   function tip(vis) {
     svg = getSVGNode(vis)
@@ -67,7 +67,7 @@ d3.tip = function() {
       d3.selection.prototype.attr.apply(d3.select(node), args)
     }
 
-    return tip;
+    return tip
   }
 
   // Public: Proxy style calls to the d3 tip container.  Sets or gets a style value.
@@ -84,7 +84,7 @@ d3.tip = function() {
       d3.selection.prototype.style.apply(d3.select(node), args)
     }
 
-    return tip;
+    return tip
   }
 
   // Public: Set or get the direction of the tooltip
@@ -94,10 +94,11 @@ d3.tip = function() {
   //
   // Returns tip or direction
   tip.direction = function(v) {
-    if (!arguments.length) return direction;
-    direction = v == null ? v : d3.functor(v);
-    return tip;
-  };
+    if (!arguments.length) return direction
+    direction = v == null ? v : d3.functor(v)
+
+    return tip
+  }
 
   // Public: Sets or gets the offset of the tip
   //
@@ -105,10 +106,11 @@ d3.tip = function() {
   //
   // Returns offset or
   tip.offset = function(v) {
-    if (!arguments.length) return offset;
-    offset = v == null ? v : d3.functor(v);
-    return tip;
-  };
+    if (!arguments.length) return offset
+    offset = v == null ? v : d3.functor(v)
+
+    return tip
+  }
 
   // Public: sets or gets the html value of the tooltip
   //
@@ -116,11 +118,11 @@ d3.tip = function() {
   //
   // Returns html value or tip
   tip.html = function(v) {
-    if (!arguments.length) return html;
+    if (!arguments.length) return html
     html = v == null ? v : d3.functor(v)
 
     return tip
-  };
+  }
 
   function d3_tip_direction() { return 'n' }
   function d3_tip_offset() { return [0, 0] }
@@ -275,5 +277,5 @@ d3.tip = function() {
     return bbox
   }
 
-  return tip;
+  return tip
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/d3-tip.js.git



More information about the Pkg-javascript-commits mailing list