Remove goog.isDef from attribution.js through color.js (-54 B)

This commit is contained in:
Tim Schaub
2015-09-18 14:51:24 +09:00
parent 37d0176642
commit c8e9525f3b
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -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])