Using null instead of null or object or undefined

This commit is contained in:
Tim Schaub
2012-09-28 12:06:34 +02:00
parent 3e34013c09
commit eb29e6a43c
3 changed files with 10 additions and 20 deletions

View File

@@ -108,7 +108,7 @@ ol.control.MousePosition.prototype.handleMouseMove = function(browserEvent) {
var pixel = new ol.Pixel(eventPosition.x, eventPosition.y);
var coordinate = map.getCoordinateFromPixel(pixel);
var html;
if (goog.isDef(coordinate)) {
if (!goog.isNull(coordinate)) {
coordinate = this.transform_(coordinate);
if (goog.isDef(this.coordinateFormat_)) {
html = this.coordinateFormat_(coordinate);