Merge "Follow-up I5357a909: Fix logic for autosave from edited state"

This commit is contained in:
jenkins-bot 2018-03-07 20:02:47 +00:00 committed by Gerrit Code Review
commit 1749a5ee41

View file

@ -476,7 +476,7 @@ ve.init.mw.ArticleTarget.prototype.surfaceReady = function () {
} }
} else { } else {
// ...otherwise store this document state for later recovery // ...otherwise store this document state for later recovery
if ( !this.fromEditedState ) { if ( this.fromEditedState ) {
// Store immediately if the document was previously edited // Store immediately if the document was previously edited
// (e.g. in a different mode) // (e.g. in a different mode)
this.storeDocState( this.originalHtml ); this.storeDocState( this.originalHtml );