Remove use of goog.isString()
This commit is contained in:
@@ -62,7 +62,7 @@ ol.control.OverviewMap = function(opt_options) {
|
||||
* @private
|
||||
* @type {Node}
|
||||
*/
|
||||
this.collapseLabel_ = goog.isString(collapseLabel) ?
|
||||
this.collapseLabel_ = typeof collapseLabel === 'string' ?
|
||||
goog.dom.createDom('SPAN', {}, collapseLabel) :
|
||||
collapseLabel;
|
||||
|
||||
@@ -72,7 +72,7 @@ ol.control.OverviewMap = function(opt_options) {
|
||||
* @private
|
||||
* @type {Node}
|
||||
*/
|
||||
this.label_ = goog.isString(label) ?
|
||||
this.label_ = typeof label === 'string' ?
|
||||
goog.dom.createDom('SPAN', {}, label) :
|
||||
label;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user