Removed redundant tolerance parameter from Rectangle.intersects (thanks @toolness #1463)

This commit is contained in:
photonstorm 2014-12-17 13:25:21 +00:00
parent ef610c7c10
commit f23c0aa24b
2 changed files with 6 additions and 5 deletions

View file

@ -81,6 +81,7 @@ Version 2.2.2 - "Alkindar" - in development
* DOM.visualBounds now includes scroll bars (#1429)
* The new fixed time-step code has been more carefully linked to Pixi transform updates. This should finally put a stop to the tunneling issues that were being reported.
* Tween.stop fired a different set of onComplete parameters to Tween.update. Both now dispatch onComplete(target, tween) as the parameters in that order (thanks @P0rnflake #1450)
* Removed redundant `tolerance` parameter from Rectangle.intersects (thanks @toolness #1463)
### Bug Fixes

View file

@ -273,16 +273,16 @@ Phaser.Rectangle.prototype = {
},
/**
* Determines whether the two Rectangles intersect with each other.
* This method checks the x, y, width, and height properties of the Rectangles.
* Determines whether this Rectangle and another given Rectangle intersect with each other.
* This method checks the x, y, width, and height properties of the two Rectangles.
*
* @method Phaser.Rectangle#intersects
* @param {Phaser.Rectangle} b - The second Rectangle object.
* @param {number} tolerance - A tolerance value to allow for an intersection test with padding, default to 0.
* @return {boolean} A value of true if the specified object intersects with this Rectangle object; otherwise false.
*/
intersects: function (b, tolerance) {
intersects: function (b) {
return Phaser.Rectangle.intersects(this, b, tolerance);
return Phaser.Rectangle.intersects(this, b);
},