Use @expose for Coordinate.z

By annotating the z property with @expose the compiler does not try to optimize that property in any way. See https://developers.google.com/closure/compiler/docs/js-for-compiler. The doc says that @expose should never be used in library code, but that's the only way I found for our case.
This commit is contained in:
Éric Lemoine
2013-03-26 17:05:54 +01:00
parent 588e0c1cdc
commit 0b62c92cb3

View File

@@ -26,6 +26,7 @@ ol.Coordinate = function(x, y, opt_z) {
goog.base(this, x, y);
/**
* @expose
* @type {number}
*/
this.z = goog.isDef(opt_z) ? opt_z : NaN;