Bug 36200 - VisualEditor: Sticky selection popup

Clearing context icon when editor loses focus.
-Reproduce problem by selecting text, then click outside of
the editor.  Selection is lost, and context icon is stuck.

Change-Id: I4b321f16cea73ec0e51540c0e71f265ab47514e9
This commit is contained in:
Rob Moen 2012-07-26 16:19:17 -07:00
parent 065bb50369
commit c656f831d1

View file

@ -106,6 +106,9 @@ ve.ce.Surface.prototype.documentOnBlur = function() {
this.$document.off( '.ve-ce-Surface' );
this.stopPolling();
if ( this.contextView ) {
this.contextView.clear();
}
};
ve.ce.Surface.prototype.onMouseDown = function( e ) {