From c31d8dc78adebaff15a2f17acc31becc21789bb0 Mon Sep 17 00:00:00 2001 From: puzzud Date: Sat, 24 Oct 2015 20:13:49 -0400 Subject: [PATCH] Reinstated fix for #1285, regarding setting Phaser.SinglePad.callbackContext in addCallbacks method. --- src/input/SinglePad.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/input/SinglePad.js b/src/input/SinglePad.js index f295eb526..fcd59e87d 100644 --- a/src/input/SinglePad.js +++ b/src/input/SinglePad.js @@ -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; } },