diff --git a/src/input/Key.js b/src/input/Key.js index be1e63ebb..f38e2200b 100644 --- a/src/input/Key.js +++ b/src/input/Key.js @@ -108,7 +108,7 @@ Phaser.Key = function (game, keycode) { this.onHoldContext = null; /** - * @property {Phaser.Signal} onUp - This Signal is dispatched every time this Key is pressed down. It is only dispatched once (until the key is released again). + * @property {Phaser.Signal} onUp - This Signal is dispatched every time this Key is released. It is only dispatched once (until the key is pressed and released again). */ this.onUp = new Phaser.Signal(); diff --git a/src/physics/arcade/World.js b/src/physics/arcade/World.js index a8990c7af..66cdedd65 100644 --- a/src/physics/arcade/World.js +++ b/src/physics/arcade/World.js @@ -326,8 +326,8 @@ Phaser.Physics.Arcade.prototype = { * @method Phaser.Physics.Arcade#overlap * @param {Phaser.Sprite|Phaser.Group|Phaser.Particles.Emitter|array} object1 - The first object or array of objects to check. Can be Phaser.Sprite, Phaser.Group or Phaser.Particles.Emitter. * @param {Phaser.Sprite|Phaser.Group|Phaser.Particles.Emitter|array} object2 - The second object or array of objects to check. Can be Phaser.Sprite, Phaser.Group or Phaser.Particles.Emitter. - * @param {function} [overlapCallback=null] - An optional callback function that is called if the objects overlap. The two objects will be passed to this function in the same order in which you specified them. The two objects will be passed to this function in the same order in which you specified them, unless you are checking Group vs. Sprite, in which case Sprite will always be the first parameter. - * @param {function} [processCallback=null] - A callback function that lets you perform additional checks against the two objects if they overlap. If this is set then overlapCallback will only be called if processCallback returns true. + * @param {function} [overlapCallback=null] - An optional callback function that is called if the objects overlap. The two objects will be passed to this function in the same order in which you specified them, unless you are checking Group vs. Sprite, in which case Sprite will always be the first parameter. + * @param {function} [processCallback=null] - A callback function that lets you perform additional checks against the two objects if they overlap. If this is set then `overlapCallback` will only be called if this callback returns `true`. * @param {object} [callbackContext] - The context in which to run the callbacks. * @return {boolean} True if an overlap occurred otherwise false. */