mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
check for own property in for (var _ in _ )
This commit is contained in:
parent
1a26fecca1
commit
b68c84af02
1 changed files with 3 additions and 1 deletions
|
@ -72,7 +72,9 @@ PitchEffect.prototype.updatePlayers = function (players) {
|
|||
if (!players) return;
|
||||
|
||||
for (var md5 in players) {
|
||||
this.updatePlayer(players[md5]);
|
||||
if (players.hasOwnProperty(md5)) {
|
||||
this.updatePlayer(players[md5]);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue