diff --git a/src/pixi/core/Circle.js b/src/pixi/core/Circle.js index 7a0f8af..088156b 100644 --- a/src/pixi/core/Circle.js +++ b/src/pixi/core/Circle.js @@ -37,7 +37,7 @@ * @method clone * @return a copy of the polygon */ -PIXI.Circle.clone = function() +PIXI.Circle.prototype.clone = function() { return new PIXI.Circle(this.x, this.y, this.radius); } @@ -48,7 +48,7 @@ * @param y {Number} The Y coord of the point to test * @return if the x/y coords are within this polygon */ -PIXI.Circle.contains = function(x, y) +PIXI.Circle.prototype.contains = function(x, y) { if(this.radius <= 0) return false; diff --git a/src/pixi/core/Circle.js b/src/pixi/core/Circle.js index 7a0f8af..088156b 100644 --- a/src/pixi/core/Circle.js +++ b/src/pixi/core/Circle.js @@ -37,7 +37,7 @@ * @method clone * @return a copy of the polygon */ -PIXI.Circle.clone = function() +PIXI.Circle.prototype.clone = function() { return new PIXI.Circle(this.x, this.y, this.radius); } @@ -48,7 +48,7 @@ * @param y {Number} The Y coord of the point to test * @return if the x/y coords are within this polygon */ -PIXI.Circle.contains = function(x, y) +PIXI.Circle.prototype.contains = function(x, y) { if(this.radius <= 0) return false; diff --git a/src/pixi/core/Ellipse.js b/src/pixi/core/Ellipse.js index 0330766..e28b9a9 100644 --- a/src/pixi/core/Ellipse.js +++ b/src/pixi/core/Ellipse.js @@ -45,7 +45,7 @@ * @method clone * @return a copy of the polygon */ -PIXI.Ellipse.clone = function() +PIXI.Ellipse.prototype.clone = function() { return new PIXI.Ellipse(this.x, this.y, this.width, this.height); } @@ -56,7 +56,7 @@ * @param y {Number} The Y coord of the point to test * @return if the x/y coords are within this polygon */ -PIXI.Ellipse.contains = function(x, y) +PIXI.Ellipse.prototype.contains = function(x, y) { if(this.width <= 0 || this.height <= 0) return false; diff --git a/src/pixi/core/Circle.js b/src/pixi/core/Circle.js index 7a0f8af..088156b 100644 --- a/src/pixi/core/Circle.js +++ b/src/pixi/core/Circle.js @@ -37,7 +37,7 @@ * @method clone * @return a copy of the polygon */ -PIXI.Circle.clone = function() +PIXI.Circle.prototype.clone = function() { return new PIXI.Circle(this.x, this.y, this.radius); } @@ -48,7 +48,7 @@ * @param y {Number} The Y coord of the point to test * @return if the x/y coords are within this polygon */ -PIXI.Circle.contains = function(x, y) +PIXI.Circle.prototype.contains = function(x, y) { if(this.radius <= 0) return false; diff --git a/src/pixi/core/Ellipse.js b/src/pixi/core/Ellipse.js index 0330766..e28b9a9 100644 --- a/src/pixi/core/Ellipse.js +++ b/src/pixi/core/Ellipse.js @@ -45,7 +45,7 @@ * @method clone * @return a copy of the polygon */ -PIXI.Ellipse.clone = function() +PIXI.Ellipse.prototype.clone = function() { return new PIXI.Ellipse(this.x, this.y, this.width, this.height); } @@ -56,7 +56,7 @@ * @param y {Number} The Y coord of the point to test * @return if the x/y coords are within this polygon */ -PIXI.Ellipse.contains = function(x, y) +PIXI.Ellipse.prototype.contains = function(x, y) { if(this.width <= 0 || this.height <= 0) return false; diff --git a/src/pixi/core/Polygon.js b/src/pixi/core/Polygon.js index a433bb4..96edc75 100644 --- a/src/pixi/core/Polygon.js +++ b/src/pixi/core/Polygon.js @@ -29,7 +29,7 @@ * @method clone * @return a copy of the polygon */ -PIXI.Polygon.clone = function() +PIXI.Polygon.prototype.clone = function() { var points = []; for (var i=0; i