[Pkg-javascript-commits] [d3-tip.js] 57/277: append text to the tooltip

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:16 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 1706b80b14be6b6e85ea3acf3219b9358e53e3cf
Author: Justin Palmer <justin at github.com>
Date:   Fri Apr 5 10:42:42 2013 -0700

    append text to the tooltip
---
 src/d3.tip.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/d3.tip.js b/src/d3.tip.js
index 038881a..c3ff36e 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -21,12 +21,13 @@ d3.svg.tip = function() {
 
   tip.show = function(v) {
     node.style.display = 'block'
-    text.apply(this, arguments)
+    var content = text.apply(this, arguments)
+    node.innerText = content
   }
 
   tip.hide = function(v) {
     node.style.display = 'none'
-    text.apply(this, arguments)
+    node.innerText = ''
   }
 
   // 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