Browse Source

fix array iteration for compatibility with environnement where array prototype is modified

Vousk-prod 9 years ago
parent
commit
57bdea12e6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Mesh/babylon.mesh.ts

+ 2 - 2
src/Mesh/babylon.mesh.ts

@@ -439,9 +439,9 @@
             if (!this._geometry) {
                 var result = [];
                 if (this._delayInfo) {
-                    for (var kind in this._delayInfo) {
+                    this._delayInfo.forEach( function(kind, index, array) {
                         result.push(kind);
-                    }
+                    });
                 }
                 return result;
             }