Use Element type instead of Node for an html element

This commit is contained in:
Frederic Junod
2018-03-09 16:59:58 +01:00
parent 6b07646129
commit 2e34421c71
4 changed files with 36 additions and 36 deletions

View File

@@ -74,7 +74,7 @@ const OverviewMap = function(opt_options) {
if (typeof collapseLabel === 'string') {
/**
* @private
* @type {Node}
* @type {Element}
*/
this.collapseLabel_ = document.createElement('span');
this.collapseLabel_.textContent = collapseLabel;
@@ -88,7 +88,7 @@ const OverviewMap = function(opt_options) {
if (typeof label === 'string') {
/**
* @private
* @type {Node}
* @type {Element}
*/
this.label_ = document.createElement('span');
this.label_.textContent = label;