Merge pull request #119 from adrienbrault/fix-methods-static

Fix methods that shouldnt be static
This commit is contained in:
Mat Groves 2013-05-10 16:19:24 -07:00
commit 7d7bf27437
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);
}