mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +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.onUpCallback = (typeof callbacks.onUp === 'function') ? callbacks.onUp : this.onUpCallback;
|
||||||
this.onAxisCallback = (typeof callbacks.onAxis === 'function') ? callbacks.onAxis : this.onAxisCallback;
|
this.onAxisCallback = (typeof callbacks.onAxis === 'function') ? callbacks.onAxis : this.onAxisCallback;
|
||||||
this.onFloatCallback = (typeof callbacks.onFloat === 'function') ? callbacks.onFloat : this.onFloatCallback;
|
this.onFloatCallback = (typeof callbacks.onFloat === 'function') ? callbacks.onFloat : this.onFloatCallback;
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof context !== 'undefined')
|
|
||||||
{
|
|
||||||
this.callbackContext = context;
|
this.callbackContext = context;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue