Fix methods that shouldnt be static

This commit is contained in:
Adrien Brault 2013-05-10 19:01:32 +02:00
parent 5de18a11fd
commit c559cd25bf
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ PIXI.Point = function(x, y)
* @method clone
* @return a copy of the point
*/
PIXI.Point.clone = function()
PIXI.Point.prototype.clone = function()
{
return new PIXI.Point(this.x, this.y);
}

View file

@ -46,7 +46,7 @@ PIXI.Rectangle = function(x, y, width, height)
* @method clone
* @return a copy of the rectangle
*/
PIXI.Rectangle.clone = function()
PIXI.Rectangle.prototype.clone = function()
{
return new PIXI.Rectangle(this.x, this.y, this.width, this.height);
}