Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Since, dojo/on remove the support of dojo/aspect, we need to switch t…

…he support of chaining from dojo/on to deferred object.
  • Loading branch information...
commit c6e82cfb2d54ad7d52087eda17161f2916167e9f 1 parent 80d0466
@imagiczhang imagiczhang authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 animation.js
View
4 animation.js
@@ -323,9 +323,9 @@ define(["dojo/_base/kernel",
item.initState();
});
- //TODO chain animations together
+ //chain animations together
for (var i=1, len=args.length; i < len; i++){
- on.once(args[i-1], "AfterEnd", lang.hitch(args[i], function(){
+ args[i-1].deferred.then(lang.hitch(args[i], function(){
this.start();
}));
}
Please sign in to comment.
Something went wrong with that request. Please try again.