[Pkg-javascript-commits] [d3-tip.js] 102/277: rename tip.text to tip.html

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:21 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 728bcbf85794f12fbd441dd1286c7a782a4af691
Author: Justin Palmer <justin at github.com>
Date:   Sun Apr 21 13:40:52 2013 -0700

    rename tip.text to tip.html
---
 examples/bars.html    | 2 +-
 examples/circles.html | 4 ++--
 src/d3.tip.js         | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/bars.html b/examples/bars.html
index cc87dbb..05509b1 100644
--- a/examples/bars.html
+++ b/examples/bars.html
@@ -79,7 +79,7 @@
   <script type="text/javascript">
     var tip = d3.tip()
       .attr('class', 'd3-tip')
-      .text(function(d) { return '<span>' + d.total + '</span>' + ' entries' })
+      .html(function(d) { return '<span>' + d.total + '</span>' + ' entries' })
       .offset([-12, 0])
 
     var w = 800,
diff --git a/examples/circles.html b/examples/circles.html
index 5c6b320..a52e60f 100644
--- a/examples/circles.html
+++ b/examples/circles.html
@@ -61,13 +61,13 @@
 
     var tip = d3.tip()
       .attr('class', 'd3-tip')
-      .text(function(d) { return d.toFixed(2) })
+      .html(function(d) { return d.toFixed(2) })
       .direction('e')
       .offset([0, 3])
 
     var tip2 = d3.tip()
       .attr('class', 'd3-tip')
-      .text(function(d) { return d.toFixed(2) })
+      .html(function(d) { return d.toFixed(2) })
       .direction('n')
       .offset([-3, 0])
 
diff --git a/src/d3.tip.js b/src/d3.tip.js
index 4524e5c..c24429b 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -106,7 +106,7 @@ d3.tip = function() {
   // v - String value of the tip
   //
   // Returns text value or tip
-  tip.text = function(v) {
+  tip.html = function(v) {
     if (!arguments.length) return text;
     text = v == null ? v : d3.functor(v)
 

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