Remove use of goog.isString()

This commit is contained in:
Marc Jansen
2016-02-05 15:12:00 +01:00
parent 057633c2c4
commit efa82dccf9
20 changed files with 43 additions and 43 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ ol.style.Style.prototype.getZIndex = function() {
ol.style.Style.prototype.setGeometry = function(geometry) {
if (goog.isFunction(geometry)) {
this.geometryFunction_ = geometry;
} else if (goog.isString(geometry)) {
} else if (typeof geometry === 'string') {
this.geometryFunction_ = function(feature) {
var result = feature.get(geometry);
if (result) {