Revert "Address error caused by changing focus from context menu to window."

Just a proof-of-concept that this would work on Opera. I'm figuring out
what was this for initially...

This reverts commit 30dadb6c8c.

Bug: 47794
Change-Id: Ie4f1334e0beb7ba7d4f4aa3b42464fa219c4778c
This commit is contained in:
MatmaRex 2013-04-29 14:22:58 +02:00 committed by Trevor Parscal
parent 4e9f6cc07c
commit 3279029ded

View file

@ -54,9 +54,9 @@ ve.ui.Context = function VeUiContext( surface, config ) {
'open': 'onInspectorOpen',
'close': 'onInspectorClose'
} );
this.$$( this.getElementWindow() ).on( {
'resize': ve.bind( this.update, this ),
'focus': ve.bind( this.onWindowFocus, this )
'resize': ve.bind( this.update, this )
} );
this.$.add( this.$menu )
.on( 'mousedown', false );
@ -125,15 +125,6 @@ ve.ui.Context.prototype.onRelocationEnd = function () {
this.update();
};
/**
* Handle window focus events on the view.
*
* @method
*/
ve.ui.Context.prototype.onWindowFocus = function () {
this.hide();
};
/**
* Handle an inspector being setup.
*