Selaa lähdekoodia

changed array iteration on tag elements to allow usage in environnement where array prototype has been modified

Vousk-prod 9 vuotta sitten
vanhempi
commit
ebfcc28ac1
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      src/Tools/babylon.tags.ts

+ 3 - 3
src/Tools/babylon.tags.ts

@@ -66,9 +66,9 @@
             }
 
             var tags = tagsString.split(" ");
-            for (var t in tags) {
-                Tags._AddTagTo(obj, tags[t]);
-            }
+            tags.forEach( function(tag, index, array) {
+                Tags._AddTagTo(obj, tag);
+            });
         }
 
         public static _AddTagTo(obj: any, tag: string): void {