fix inheritence for sockets

beta.r3js.org
-=yb4f310 2017-12-30 12:44:28 +01:00
parent 42132fd2df
commit ad3fbdd1cb
2 changed files with 2 additions and 10 deletions

View File

@ -18,10 +18,6 @@ GameLib.Socket.Cast = function(
};
}
if (apiSocketCast instanceof GameLib.Socket.Cast) {
return apiSocketCast;
}
GameLib.API.Socket.Cast.call(
this,
apiSocketCast,
@ -37,7 +33,7 @@ GameLib.Socket.Cast = function(
);
};
GameLib.Socket.Cast.prototype = Object.create(GameLib.API.Socket.Cast.prototype);
GameLib.Socket.Cast.prototype = Object.create(GameLib.Socket.prototype);
GameLib.Socket.Cast.prototype.constructor = GameLib.Socket.Cast;
GameLib.Socket.Cast.prototype.createInstance = function() {

View File

@ -18,10 +18,6 @@ GameLib.Socket.Receive = function(
};
}
if (apiSocketReceive instanceof GameLib.Socket.Receive) {
return apiSocketReceive;
}
GameLib.API.Socket.Receive.call(
this,
apiSocketReceive,
@ -38,7 +34,7 @@ GameLib.Socket.Receive = function(
};
GameLib.Socket.Receive.prototype = Object.create(GameLib.API.Socket.Receive.prototype);
GameLib.Socket.Receive.prototype = Object.create(GameLib.Socket.prototype);
GameLib.Socket.Receive.prototype.constructor = GameLib.Socket.Receive;
GameLib.Socket.Receive.prototype.createInstance = function() {