I forgot prototype on a lot of things

This commit is contained in:
Chad Engler 2013-07-01 10:57:57 -07:00
parent 9642b36a76
commit 2410922d61
3 changed files with 6 additions and 6 deletions

View file

@ -37,7 +37,7 @@ PIXI.Circle = function(x, y, radius)
* @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 @@ PIXI.Circle.clone = function()
* @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;

View file

@ -45,7 +45,7 @@ PIXI.Ellipse = function(x, y, width, height)
* @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 @@ PIXI.Ellipse.clone = function()
* @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;

View file

@ -29,7 +29,7 @@ PIXI.Polygon = function(points)
* @method clone
* @return a copy of the polygon
*/
PIXI.Polygon.clone = function()
PIXI.Polygon.prototype.clone = function()
{
var points = [];
for (var i=0; i<this.points.length; i++) {
@ -45,7 +45,7 @@ PIXI.Polygon.clone = function()
* @param y {Number} The Y coord of the point to test
* @return if the x/y coords are within this polygon
*/
PIXI.Polygon.contains = function(x, y)
PIXI.Polygon.prototype.contains = function(x, y)
{
var inside = false;