Skip to content

Commit

Permalink
Merge pull request #235 from finscn/patch-3
Browse files Browse the repository at this point in the history
fix: check for `module` object before accessing it (avoids "module is not defined" in certain environments)
  • Loading branch information
sole committed Jan 12, 2016
2 parents b353c98 + a68e93b commit 02168cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tween.js
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ TWEEN.Interpolation = {
return TWEEN;
});

} else if (typeof exports === 'object') {
} else if (typeof module !== 'undefined' && typeof exports === 'object') {

// Node.js
module.exports = TWEEN;
Expand Down

0 comments on commit 02168cc

Please sign in to comment.