mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-03 03:04:27 +02:00
awesome before and after deferreds working
This commit is contained in:
parent
4e6e82e698
commit
134cc9f748
5 changed files with 159 additions and 24 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue