mirror of
https://github.com/tweenjs/tween.js.git
synced 2025-12-08 20:16:12 +00:00
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:
parent
c3d4ef08c9
commit
4e71e7b52b
@ -98,7 +98,7 @@ TWEEN.Tween = function ( object ) {
|
||||
|
||||
this.to = function ( properties, duration ) {
|
||||
|
||||
if ( duration !== null ) {
|
||||
if ( duration !== undefined ) {
|
||||
|
||||
_duration = duration;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user