Remove goog.isDef from geom/linestring

This commit is contained in:
Marc Jansen
2015-09-22 09:21:37 +02:00
committed by Tim Schaub
parent 2b77e1601a
commit 27fb1b6fde
+1 -1
View File
@@ -148,7 +148,7 @@ ol.geom.LineString.prototype.getCoordinateAtM = function(m, opt_extrapolate) {
this.layout != ol.geom.GeometryLayout.XYZM) { this.layout != ol.geom.GeometryLayout.XYZM) {
return null; return null;
} }
var extrapolate = goog.isDef(opt_extrapolate) ? opt_extrapolate : false; var extrapolate = opt_extrapolate ? opt_extrapolate : false;
return ol.geom.flat.lineStringCoordinateAtM(this.flatCoordinates, 0, return ol.geom.flat.lineStringCoordinateAtM(this.flatCoordinates, 0,
this.flatCoordinates.length, this.stride, m, extrapolate); this.flatCoordinates.length, this.stride, m, extrapolate);
}; };