Merge "Unbreak 404 handling code"

This commit is contained in:
jenkins-bot 2015-11-04 16:06:09 +00:00 committed by Gerrit Code Review
commit d24844af2e

View file

@ -172,7 +172,7 @@
function ( response ) {
if ( response.status === 404 ) {
// Page does not exist, so let the user start with a blank document.
return $.Deferred().resolve( '' ).promise();
return $.Deferred().resolve( [ '', undefined ] ).promise();
} else {
window.alert( mw.msg( 'visualeditor-loaderror-message', 'HTTP ' + response.status ) );