1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

Merge pull request #223 from UFOwl/patch-6

Update async.md
This commit is contained in:
Ruan YiFeng 2016-06-29 05:26:56 +08:00 committed by GitHub
commit 3204a6b5e4

View File

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