Reinstated fix for #1285, regarding setting Phaser.SinglePad.callbackContext in addCallbacks method.

This commit is contained in:
puzzud 2015-10-24 20:13:49 -04:00
parent 492fdc98eb
commit c31d8dc78a

View file

@ -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;
}
},