mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Reinstated fix for #1285, regarding setting Phaser.SinglePad.callbackContext in addCallbacks method.
This commit is contained in:
parent
492fdc98eb
commit
c31d8dc78a
1 changed files with 0 additions and 3 deletions
|
@ -136,10 +136,7 @@ Phaser.SinglePad.prototype = {
|
|||
this.onUpCallback = (typeof callbacks.onUp === 'function') ? callbacks.onUp : this.onUpCallback;
|
||||
this.onAxisCallback = (typeof callbacks.onAxis === 'function') ? callbacks.onAxis : this.onAxisCallback;
|
||||
this.onFloatCallback = (typeof callbacks.onFloat === 'function') ? callbacks.onFloat : this.onFloatCallback;
|
||||
}
|
||||
|
||||
if (typeof context !== 'undefined')
|
||||
{
|
||||
this.callbackContext = context;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue