Skip to content

Commit bd2e25e

Browse files
committed
Swapped back to using non-class IO.
1 parent a1dc398 commit bd2e25e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/input/local/components/SetHitArea.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var SetHitArea = function (gameObjects, shape, callback)
1616
{
1717
var gameObject = gameObjects[i];
1818

19-
gameObject.input = new InteractiveObject(gameObject, shape, callback);
19+
gameObject.input = InteractiveObject(gameObject, shape, callback);
2020

2121
this.queueForInsertion(gameObject);
2222
}

v3/src/input/local/components/SetHitAreaFromTexture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var SetHitAreaFromTexture = function (gameObjects, callback)
1818

1919
if (frame)
2020
{
21-
gameObject.input = new InteractiveObject(gameObject, new Rectangle(0, 0, frame.width, frame.height), callback);
21+
gameObject.input = InteractiveObject(gameObject, new Rectangle(0, 0, frame.width, frame.height), callback);
2222

2323
this.queueForInsertion(gameObject);
2424
}

0 commit comments

Comments
 (0)