New MapHandler base class; better API docs

This commit is contained in:
ahocevar
2012-07-12 15:21:15 +02:00
parent 1ad915b428
commit f672303f0a
6 changed files with 85 additions and 87 deletions
+1 -1
View File
@@ -525,7 +525,7 @@ ol.Map.prototype.initHandlers = function() {
goog.asserts.assert(!goog.isNull(this.viewport_));
var handler,
states = {};
states = /** @type {ol.handler.states} */ ({});
if (ol.ENABLE_DRAG_HANDLER) {
handler = new ol.handler.Drag(this, this.viewport_, states);