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
+1 -1
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);