[Pkg-javascript-commits] [d3-tip.js] 236/277: properly inject d3.tip in cjs scenario
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:34 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 02132e476299e97c5665d35b664334db66df80f0
Author: Yaniv Kessler <yanivk at gmail.com>
Date: Wed Apr 30 15:17:31 2014 +0300
properly inject d3.tip in cjs scenario
---
index.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/index.js b/index.js
index b3cfd74..c0fbd9d 100644
--- a/index.js
+++ b/index.js
@@ -9,7 +9,10 @@
define(['d3'], factory)
} else if (module && module.exports !== undefined) {
// CommonJS
- module.exports = factory
+ module.exports = function(d3) {
+ d3.tip = factory(d3)
+ return d3.tip
+ }
} else {
// Browser global.
root.d3.tip = factory(root.d3)
--
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