projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0294d28
)
Fix broken tests when module is not defined
author
aldendaniels
<alden@aldendaniels.me>
Mon, 20 Apr 2015 17:36:27 +0000
(12:36 -0500)
committer
aldendaniels
<alden@aldendaniels.me>
Mon, 20 Apr 2015 17:36:27 +0000
(12:36 -0500)
src/dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/src/dygraph.js
b/src/dygraph.js
index
1e4d2dd
..
878a747
100644
(file)
--- a/
src/dygraph.js
+++ b/
src/dygraph.js
@@
-3747,7
+3747,7
@@
Dygraph.addAnnotationRule = function() {
console.warn("Unable to add default annotation CSS rule; display may be off.");
};
-if (
module && module.exports
) {
+if (
typeof exports === "object" && typeof module !== "undefined"
) {
module.exports = Dygraph;
}