Improve type checking in ol.coordinate

This commit is contained in:
Tom Payne
2013-04-30 21:29:56 +02:00
parent d2979fc4ff
commit 539529af59

View File

@@ -35,9 +35,14 @@ ol.coordinate.add = function(coordinate, delta) {
* @return {ol.CoordinateFormatType} Coordinate format.
*/
ol.coordinate.createStringXY = function(opt_precision) {
return function(coordinate) {
return ol.coordinate.toStringXY(coordinate, opt_precision);
};
return (
/**
* @param {ol.Coordinate|undefined} coordinate Coordinate.
* @return {string} String XY.
*/
function(coordinate) {
return ol.coordinate.toStringXY(coordinate, opt_precision);
});
};