瀏覽代碼

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

Vousk-prod 9 年之前
父節點
當前提交
57bdea12e6
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
             }