READY TO BUILD LEVELS :DDDDDDDDDDDDDD

This commit is contained in:
Peter Cottle 2013-01-11 00:35:50 -08:00
parent c5f4d6e3f2
commit 8a1986a923
7 changed files with 175 additions and 48 deletions

View file

@ -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'