Browse Source

Use hasOwnProperty in Network.prototype._isMoving

v3_develop
Jan Rotter 9 years ago
parent
commit
6b2e11806b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/network/Network.js

+ 1
- 1
lib/network/Network.js View File

@ -2324,7 +2324,7 @@ Network.prototype._restoreFrozenNodes = function() {
Network.prototype._isMoving = function(vmin) { Network.prototype._isMoving = function(vmin) {
var nodes = this.nodes; var nodes = this.nodes;
for (var id in nodes) { for (var id in nodes) {
if (nodes[id] !== undefined) {
if (nodes.hasOwnProperty(id)) {
if (nodes[id].isMoving(vmin) == true) { if (nodes[id].isMoving(vmin) == true) {
return true; return true;
} }

Loading…
Cancel
Save