Inline !goog.isDef() property checks

This commit is contained in:
Tim Schaub
2015-09-27 10:24:38 -06:00
parent 6638ae855d
commit 3a0683f373
8 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ ol.proj.Projection = function(options) {
if (goog.isDef(def.axis) && !goog.isDef(options.axisOrientation)) {
this.axisOrientation_ = def.axis;
}
if (!goog.isDef(options.units)) {
if (options.units === undefined) {
var units = def.units;
if (units === undefined) {
if (def.to_meter !== undefined) {