mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 01:10:04 +02:00
READY TO BUILD LEVELS :DDDDDDDDDDDDDD
This commit is contained in:
parent
c5f4d6e3f2
commit
8a1986a923
7 changed files with 175 additions and 48 deletions
|
@ -125,12 +125,12 @@ var ConfirmCancelView = ResolveRejectBase.extend({
|
|||
},
|
||||
|
||||
initialize: function(options) {
|
||||
if (!options.destination || !options.deferred) {
|
||||
if (!options.destination) {
|
||||
throw new Error('needmore');
|
||||
}
|
||||
|
||||
this.destination = options.destination;
|
||||
this.deferred = options.deferred;
|
||||
this.deferred = options.deferred || Q.defer();
|
||||
this.JSON = {
|
||||
confirm: options.confirm || 'Confirm',
|
||||
cancel: options.cancel || 'Cancel'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue