Add method to bind bluring on mouseout/focusout

This commit is contained in:
Marc Jansen
2015-05-26 22:23:23 +02:00
parent ec208916d2
commit 41596d808b
6 changed files with 24 additions and 30 deletions

View File

@@ -67,12 +67,7 @@ ol.control.FullScreen = function(opt_options) {
goog.events.listen(button, goog.events.EventType.CLICK,
this.handleClick_, false, this);
goog.events.listen(button, [
goog.events.EventType.MOUSEOUT,
goog.events.EventType.FOCUSOUT
], function() {
this.blur();
}, false);
ol.control.Control.bindMouseOutFocusOutBlur(button);
goog.events.listen(goog.global.document,
goog.dom.fullscreen.EventType.CHANGE,