Remove defaultPrevented attribut from ol.MapEvent
already defined in parent class: http://docs.closure-library.googlecode.com/git/class_goog_events_Event.html
This commit is contained in:
@@ -30,11 +30,6 @@ ol.MapEvent = function(type, map, opt_frameState) {
|
|||||||
*/
|
*/
|
||||||
this.map = map;
|
this.map = map;
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {boolean}
|
|
||||||
*/
|
|
||||||
this.defaultPrevented = false;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {?ol.FrameState}
|
* @type {?ol.FrameState}
|
||||||
*/
|
*/
|
||||||
@@ -42,12 +37,3 @@ ol.MapEvent = function(type, map, opt_frameState) {
|
|||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.MapEvent, goog.events.Event);
|
goog.inherits(ol.MapEvent, goog.events.Event);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Prevents the default action.
|
|
||||||
*/
|
|
||||||
ol.MapEvent.prototype.preventDefault = function() {
|
|
||||||
goog.base(this, 'preventDefault');
|
|
||||||
this.defaultPrevented = true;
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user