Calling Tween.setCallback() without specifying the params argument would cause an error invoking the callback params. This parameter is now fully optional. Fix #6047

This commit is contained in:
Richard Davey 2022-07-26 18:42:21 +01:00
parent 0210c4e584
commit 7fb8fe2223

View file

@ -1008,6 +1008,8 @@ var Tween = new Class({
*/
setCallback: function (type, callback, params, scope)
{
if (params === undefined) { params = []; }
this.callbacks[type] = { func: callback, scope: scope, params: [ this, null ].concat(params) };
return this;