diff --git a/lib/network/Network.js b/lib/network/Network.js index 9fd72c09..f822f53f 100644 --- a/lib/network/Network.js +++ b/lib/network/Network.js @@ -2324,7 +2324,7 @@ Network.prototype._restoreFrozenNodes = function() { Network.prototype._isMoving = function(vmin) { var nodes = this.nodes; for (var id in nodes) { - if (nodes[id] !== undefined) { + if (nodes.hasOwnProperty(id)) { if (nodes[id].isMoving(vmin) == true) { return true; }