1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-29 05:42:20 +00:00

Update async.md

根据后面generator和async的写法,这里似乎应该用of。
This commit is contained in:
UFOwl 2016-06-20 16:20:05 +08:00 committed by GitHub
parent 550df8c3b8
commit bea8187933

View File

@ -1171,7 +1171,7 @@ function chainAnimationsPromise(elem, animations) {
var p = Promise.resolve(); var p = Promise.resolve();
// 使用then方法添加所有动画 // 使用then方法添加所有动画
for(var anim in animations) { for(var anim of animations) {
p = p.then(function(val) { p = p.then(function(val) {
ret = val; ret = val;
return anim(elem); return anim(elem);