mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
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:
parent
0210c4e584
commit
7fb8fe2223
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue