awesome before and after deferreds working

This commit is contained in:
Peter Cottle 2013-01-03 12:19:47 -08:00
parent 4e6e82e698
commit 134cc9f748
5 changed files with 159 additions and 24 deletions

View file

@ -46,7 +46,7 @@ var MultiView = Backbone.View.extend({
markdown: 'Im second'
}
}];
this.deferred = Q.defer();
this.deferred = options.deferred || Q.defer();
this.childViews = [];
this.currentIndex = 0;
@ -72,6 +72,11 @@ var MultiView = Backbone.View.extend({
onWindowFocus: function() {
// nothing here for now...
// TODO -- add a cool glow effect?
},
getAnimationTime: function() {
return 700;
},
getPromise: function() {