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
+1 -6
View File
@@ -50,12 +50,7 @@ ol.control.Zoom = function(opt_options) {
goog.events.EventType.CLICK, goog.partial(
ol.control.Zoom.prototype.handleClick_, delta), false, this);
goog.events.listen(inElement, [
goog.events.EventType.MOUSEOUT,
goog.events.EventType.FOCUSOUT
], function() {
this.blur();
}, false);
ol.control.Control.bindMouseOutFocusOutBlur(inElement);
var outElement = goog.dom.createDom(goog.dom.TagName.BUTTON, {
'class': className + '-out',