Jelajahi Sumber

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

Vousk-prod 9 tahun lalu
induk
melakukan
57bdea12e6
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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;
             }