mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-30 09:44:26 +02:00
all done except for maybe 3d thing
This commit is contained in:
parent
d825573ef9
commit
d6a7a11337
3 changed files with 25 additions and 12 deletions
|
@ -34,6 +34,7 @@ var MultiView = Backbone.View.extend({
|
|||
markdown: 'Im second'
|
||||
}
|
||||
}];
|
||||
this.deferred = options.deferred;
|
||||
|
||||
this.childViews = [];
|
||||
this.currentIndex = 0;
|
||||
|
@ -90,8 +91,11 @@ var MultiView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
finish: function() {
|
||||
// promise resolve??
|
||||
console.log('promise resolve :D');
|
||||
if (this.deferred) {
|
||||
this.deferred.resolve();
|
||||
} else {
|
||||
console.warn('no promise to resolve');
|
||||
}
|
||||
},
|
||||
|
||||
createChildView: function(viewJSON) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue