From c559cd25bfd5d56b11702d8680d5952a1046fdb3 Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Fri, 10 May 2013 19:01:32 +0200 Subject: [PATCH] Fix methods that shouldnt be static --- src/pixi/Point.js | 2 +- src/pixi/Rectangle.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixi/Point.js b/src/pixi/Point.js index 0e0884a..6fd5295 100644 --- a/src/pixi/Point.js +++ b/src/pixi/Point.js @@ -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); } diff --git a/src/pixi/Rectangle.js b/src/pixi/Rectangle.js index eeecc06..f3513eb 100644 --- a/src/pixi/Rectangle.js +++ b/src/pixi/Rectangle.js @@ -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); }