Merge pull request #119 from adrienbrault/fix-methods-static
Fix methods that shouldnt be static
This commit is contained in:
commit
7d7bf27437
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue