Update src/Tween.js

Tween#to should check if |duration| is undefined to default the parameter when it is not passed.
This commit is contained in:
Dean McNamee 2012-11-01 14:33:19 +01:00
parent c3d4ef08c9
commit 4e71e7b52b

View File

@ -98,7 +98,7 @@ TWEEN.Tween = function ( object ) {
this.to = function ( properties, duration ) {
if ( duration !== null ) {
if ( duration !== undefined ) {
_duration = duration;