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

@@ -60,12 +60,7 @@ ol.control.Rotate = function(opt_options) {
goog.events.listen(button, goog.events.EventType.CLICK,
ol.control.Rotate.prototype.handleClick_, false, this);
goog.events.listen(button, [
goog.events.EventType.MOUSEOUT,
goog.events.EventType.FOCUSOUT
], function() {
this.blur();
}, false);
ol.control.Control.bindMouseOutFocusOutBlur(button);
var cssClasses = className + ' ' + ol.css.CLASS_UNSELECTABLE + ' ' +
ol.css.CLASS_CONTROL;