Remove goog.isDef for geometries

This commit is contained in:
Tim Schaub
2015-09-21 05:59:47 +09:00
parent 1fceb4a709
commit b0fe36e609
12 changed files with 29 additions and 24 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ goog.require('ol.proj');
*/
ol.geom.Circle = function(center, opt_radius, opt_layout) {
goog.base(this);
var radius = goog.isDef(opt_radius) ? opt_radius : 0;
var radius = opt_radius ? opt_radius : 0;
this.setCenterAndRadius(center, radius, opt_layout);
};
goog.inherits(ol.geom.Circle, ol.geom.SimpleGeometry);