Include edit status in the ve.deactivationComplete event

Rather than setting the wgPostEdit configuration variable when the
user uses VisualEditor, i.e. communicating via mutable global
state, include whether or not the user edited the page in the
ve.deactivationComplete event.

Bug: 52955
Change-Id: I0f5067550921008f74221d6c92882adfe404b3a5
This commit is contained in:
Sam Smith 2014-02-11 18:23:37 +00:00 committed by Roan Kattouw
parent 674406adb9
commit 5ebacd389d
2 changed files with 3 additions and 2 deletions

2
lib/ve

@ -1 +1 @@
Subproject commit 08083de071847735f095afacfcb7d17b3c1ec349
Subproject commit 84ced370eb58b493c08a0a7156347e18a85b3001

View file

@ -242,7 +242,8 @@ ve.init.mw.ViewPageTarget.prototype.deactivate = function ( override ) {
this.initialEditSummary = '';
this.deactivating = false;
mw.hook( 've.deactivationComplete' ).fire();
mw.hook( 've.deactivationComplete' ).fire( this.edited );
}
}
};