promise animation basic API working

This commit is contained in:
Peter Cottle 2013-06-02 16:29:01 -07:00
parent d208905b77
commit 4b003f057e
2 changed files with 10 additions and 6 deletions

View file

@ -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);
}
});