Making Element/Node types more consistent.

This commit is contained in:
ahocevar
2012-06-24 22:12:38 +02:00
parent eabc2d9922
commit 9758910fc6
3 changed files with 38 additions and 15 deletions

View File

@@ -104,7 +104,8 @@ ol.control.Zoom.prototype.handle = function(evt) {
ol.control.Zoom.prototype.destroy = function() {
goog.dom.removeNode(goog.dom.getElementByClass(
ol.control.Zoom.RES.CLS, this.map_.getViewport()
ol.control.Zoom.RES.CLS,
/** @type {Element} */ (this.map_.getViewport())
));
goog.base(this, 'destroy');
};