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
+2 -2
View File
@@ -520,7 +520,7 @@ ol.proj.clearAllProjections = function() {
ol.proj.createProjection = function(projection, defaultCode) {
if (!projection) {
return ol.proj.get(defaultCode);
} else if (goog.isString(projection)) {
} else if (typeof projection === 'string') {
return ol.proj.get(projection);
} else {
goog.asserts.assertInstanceof(projection, ol.proj.Projection,
@@ -680,7 +680,7 @@ ol.proj.get = function(projectionLike) {
var projection;
if (projectionLike instanceof ol.proj.Projection) {
projection = projectionLike;
} else if (goog.isString(projectionLike)) {
} else if (typeof projectionLike === 'string') {
var code = projectionLike;
projection = ol.proj.projections_[code];
if (ol.ENABLE_PROJ4JS) {