From 7edce15c814b01364ffe3dc746710f66d1a7959b Mon Sep 17 00:00:00 2001 From: Remco Kranenburg Date: Mon, 16 Nov 2015 12:08:37 +0100 Subject: [PATCH 1/2] Don't add tween to root object if root is undefined --- src/Tween.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tween.js b/src/Tween.js index 02fc5ca8..655ac183 100644 --- a/src/Tween.js +++ b/src/Tween.js @@ -864,7 +864,7 @@ TWEEN.Interpolation = { // Node.js module.exports = TWEEN; - } else { + } else if(root !== undefined) { // Global variable root.TWEEN = TWEEN; From e19a4c929bace618cd4a8ab1f36357f97a2353ae Mon Sep 17 00:00:00 2001 From: Remco Kranenburg Date: Mon, 16 Nov 2015 12:19:12 +0100 Subject: [PATCH 2/2] Code style fix --- src/Tween.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tween.js b/src/Tween.js index 655ac183..461241d8 100644 --- a/src/Tween.js +++ b/src/Tween.js @@ -864,7 +864,7 @@ TWEEN.Interpolation = { // Node.js module.exports = TWEEN; - } else if(root !== undefined) { + } else if (root !== undefined) { // Global variable root.TWEEN = TWEEN;