Remove goog.isDef from attribution.js through color.js (-54 B)
This commit is contained in:
@@ -21,7 +21,7 @@ ol.CenterConstraint.createExtent = function(extent) {
|
||||
* @return {ol.Coordinate|undefined} Center.
|
||||
*/
|
||||
function(center) {
|
||||
if (goog.isDef(center)) {
|
||||
if (center) {
|
||||
return [
|
||||
goog.math.clamp(center[0], extent[0], extent[2]),
|
||||
goog.math.clamp(center[1], extent[1], extent[3])
|
||||
|
||||
Reference in New Issue
Block a user