Inline various goog.isDef() calls

This commit is contained in:
Tim Schaub
2015-09-27 10:51:03 -06:00
parent 83c59ee255
commit b3b31ea16d
5 changed files with 13 additions and 10 deletions

View File

@@ -146,7 +146,7 @@ ol.proj.Projection = function(options) {
goog.asserts.assert(code !== undefined,
'Option "code" is required for constructing instance');
if (ol.ENABLE_PROJ4JS && typeof proj4 == 'function' &&
!goog.isDef(projections[code])) {
projections[code] === undefined) {
var def = proj4.defs(code);
if (def !== undefined) {
if (def.axis !== undefined && options.axisOrientation === undefined) {