add prototype keyword to Rectangle

This commit is contained in:
Chad Engler 2013-07-01 10:33:11 -07:00
parent 44c6e6a1f6
commit 9642b36a76

View file

@ -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;