Follows up on I1ac083fd491c7445240b4fd9f7b3badacb2d2d37
Change-Id: I58e9ad669f7b373b45861e4b41f488b167509b34
this.upload = this.createUpload();
this.setPage( 'upload' );
this.upload = this.createUpload();
this.setPage( 'upload' );
- apiPromise = this.upload.apiPromise || $.Deferred.resolve( this.upload.api );
+ apiPromise = this.upload.apiPromise || $.Deferred().resolve( this.upload.api );
apiPromise.done( function ( api ) {
// If the user can't upload anything, don't give them the option to.
api.getUserInfo().done( function ( userInfo ) {
apiPromise.done( function ( api ) {
// If the user can't upload anything, don't give them the option to.
api.getUserInfo().done( function ( userInfo ) {