Fixes issues reported in #389

This commit is contained in:
photonstorm
2014-02-10 01:49:58 +00:00
parent d44775c095
commit 0294a4735d
3 changed files with 11 additions and 9 deletions
+6 -6
View File
@@ -120,16 +120,16 @@ Phaser.Tile = function (layer, index, x, y, width, height) {
this.collideDown = false;
/**
* @property {function} callback - Tile collision callback.
* @property {function} collisionCallback - Tile collision callback.
* @default
*/
this.callback = null;
this.collisionCallback = null;
/**
* @property {object} callbackContext - The context in which the collision callback will be called.
* @property {object} collisionCallbackContext - The context in which the collision callback will be called.
* @default
*/
this.callbackContext = this;
this.collisionCallbackContext = this;
};
@@ -141,12 +141,12 @@ Phaser.Tile.prototype = {
*
* @method Phaser.Tile#setCollisionCallback
* @param {function} callback - Callback function.
* @param {object} context - Callback will be called with this context.
* @param {object} context - Callback will be called within this context.
*/
setCollisionCallback: function (callback, context) {
this.collisionCallbackContext = context;
this.collisionCallback = callback;
this.collisionCallbackContext = context;
},