add prototype keyword to Rectangle
This commit is contained in:
parent
44c6e6a1f6
commit
9642b36a76
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ PIXI.Rectangle.prototype.clone = function()
|
|||
* @param y {Number} The Y coord of the point to test
|
||||
* @return if the x/y coords are within this polygon
|
||||
*/
|
||||
PIXI.Rectangle.contains = function(x, y)
|
||||
PIXI.Rectangle.prototype.contains = function(x, y)
|
||||
{
|
||||
if(this.width <= 0 || this.height <= 0)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue