From 4e71e7b52b0607c8431498d6bf13ca2d2d5dec68 Mon Sep 17 00:00:00 2001 From: Dean McNamee Date: Thu, 1 Nov 2012 14:33:19 +0100 Subject: [PATCH] Update src/Tween.js Tween#to should check if |duration| is undefined to default the parameter when it is not passed. --- src/Tween.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tween.js b/src/Tween.js index 266cfe7..09bd92f 100644 --- a/src/Tween.js +++ b/src/Tween.js @@ -98,7 +98,7 @@ TWEEN.Tween = function ( object ) { this.to = function ( properties, duration ) { - if ( duration !== null ) { + if ( duration !== undefined ) { _duration = duration;