Remove use of goog.isString()
This commit is contained in:
@@ -45,7 +45,7 @@ ol.control.FullScreen = function(opt_options) {
|
||||
* @private
|
||||
* @type {Node}
|
||||
*/
|
||||
this.labelNode_ = goog.isString(label) ?
|
||||
this.labelNode_ = typeof label === 'string' ?
|
||||
document.createTextNode(label) : label;
|
||||
|
||||
var labelActive = options.labelActive ? options.labelActive : '\u00d7';
|
||||
@@ -54,7 +54,7 @@ ol.control.FullScreen = function(opt_options) {
|
||||
* @private
|
||||
* @type {Node}
|
||||
*/
|
||||
this.labelActiveNode_ = goog.isString(labelActive) ?
|
||||
this.labelActiveNode_ = typeof labelActive === 'string' ?
|
||||
document.createTextNode(labelActive) : labelActive;
|
||||
|
||||
var tipLabel = options.tipLabel ? options.tipLabel : 'Toggle full-screen';
|
||||
|
||||
Reference in New Issue
Block a user