[Pkg-javascript-commits] [d3-tip.js] 72/277: return the tip object in show and hide for chaining

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:18 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 9d2c31f17a122adec58b911ecb0d3a393695816f
Author: Justin Palmer <justin at github.com>
Date:   Sun Apr 7 15:11:02 2013 -0700

    return the tip object in show and hide for chaining
---
 src/d3.tip.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/d3.tip.js b/src/d3.tip.js
index de58fb6..a02ba42 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -40,11 +40,15 @@ d3.svg.tip = function() {
     coords = direction_callbacks.get(dir).apply(this)
     node.style.top = coords.top + 'px'
     node.style.left = coords.left + 'px'
+
+    return tip
   }
 
   tip.hide = function(v) {
     node.style.display = 'none'
     node.innerText = ''
+
+    return tip
   }
 
   // Public: Proxy attr calls to the d3 tip container.  Sets or gets attribute value.

-- 
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