mw.Upload.BookletLayout: Use $.Deferred(), not $.Deferred
authorPrateek Saxena <prtksxna@gmail.com>
Mon, 21 Dec 2015 15:26:10 +0000 (20:56 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Mon, 21 Dec 2015 15:26:10 +0000 (20:56 +0530)
Follows up on I1ac083fd491c7445240b4fd9f7b3badacb2d2d37

Change-Id: I58e9ad669f7b373b45861e4b41f488b167509b34

resources/src/mediawiki/mediawiki.Upload.BookletLayout.js

index 43c3c8e..e4197dc 100644 (file)
                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 ) {