mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 01:10:04 +02:00
promise animation basic API working
This commit is contained in:
parent
d208905b77
commit
4b003f057e
2 changed files with 10 additions and 6 deletions
|
@ -113,8 +113,8 @@ var PromiseAnimation = Backbone.Model.extend({
|
|||
console.log('the duration', this.get('duration'));
|
||||
},
|
||||
|
||||
then: function() {
|
||||
return this.get('deferred').promise.then();
|
||||
then: function(func) {
|
||||
return this.get('deferred').promise.then(func);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue