Inline simple !goog.isDef() calls

This commit is contained in:
Tim Schaub
2015-09-27 10:31:16 -06:00
parent 3a0683f373
commit a86c270f6a
11 changed files with 17 additions and 17 deletions

View File

@@ -738,7 +738,7 @@ ol.View.createRotationConstraint_ = function(options) {
options.enableRotation : true;
if (enableRotation) {
var constrainRotation = options.constrainRotation;
if (!goog.isDef(constrainRotation) || constrainRotation === true) {
if (constrainRotation === undefined || constrainRotation === true) {
return ol.RotationConstraint.createSnapToZero();
} else if (constrainRotation === false) {
return ol.RotationConstraint.none;