Get rid of goog.dom.getFirstElementChild

Use [firstElementChild](https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/firstElementChild) instead.
This commit is contained in:
Frederic Junod
2016-02-29 16:59:27 +01:00
parent cf23d0541c
commit e9a5fadacc
2 changed files with 3 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ ol.control.FullScreen.prototype.handleFullScreen_ = function() {
ol.control.FullScreen.prototype.handleFullScreenChange_ = function() {
var opened = this.cssClassName_ + '-true';
var closed = this.cssClassName_ + '-false';
var button = goog.dom.getFirstElementChild(this.element);
var button = this.element.firstElementChild;
var map = this.getMap();
if (goog.dom.fullscreen.isFullScreen()) {
goog.dom.classlist.swap(button, closed, opened);