[Pkg-javascript-commits] [d3-tip.js] 249/277: fix module check
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:36 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 8b5924c908c058ccb27b3683b25b0b07cc8651a4
Author: Justin Palmer <justin at github.com>
Date: Tue Oct 21 09:20:43 2014 -0600
fix module check
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 87e2087..13b1e40 100644
--- a/index.js
+++ b/index.js
@@ -7,7 +7,7 @@
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module with d3 as a dependency.
define(['d3'], factory)
- } else if (module && module.exports !== undefined) {
+ } else if (typeof module === 'object' && module.exports) {
// CommonJS
module.exports = function(d3) {
d3.tip = factory(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