changed object create to Parent.prototype

This commit is contained in:
Jeena Paradies 2012-07-22 13:28:07 +02:00
parent 76391c2c5e
commit f85469b97e
4 changed files with 4 additions and 5 deletions

View file

@ -10,7 +10,7 @@ function(Box2D, Parent) {
this.me = me;
}
Detector.prototype = Object.create(Parent);
Detector.prototype = Object.create(Parent.prototype);
Detector.prototype.handleStand = function(point, isColliding) {
if (point.GetFixtureA().GetUserData() == Detector.IDENTIFIER.PLAYER_FOOT_SENSOR