Sinewave animation for pending requests

Tryin it on for size.

// FREEBIE
This commit is contained in:
lilia 2015-10-28 13:57:32 -07:00
parent 1065502770
commit c77391b3f2
5 changed files with 45 additions and 0 deletions

View file

@ -139,9 +139,12 @@
},
send: function(promise) {
this.trigger('pending');
return promise.then(function() {
this.trigger('done');
this.save({sent: true});
}.bind(this)).catch(function(errors) {
this.trigger('done');
this.set({sent: true});
this.saveErrors(errors);
}.bind(this));