Skip to content

Commit

Permalink
Merge pull request #234 from Remco47/strict-mode-compat
Browse files Browse the repository at this point in the history
Don't add tween to root object if root is undefined
  • Loading branch information
sole committed Nov 17, 2015
2 parents 09a72c3 + e19a4c9 commit d2a59e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tween.js
Expand Up @@ -864,7 +864,7 @@ TWEEN.Interpolation = {
// Node.js
module.exports = TWEEN;

} else {
} else if (root !== undefined) {

// Global variable
root.TWEEN = TWEEN;
Expand Down

0 comments on commit d2a59e4

Please sign in to comment.