Use ol.inherits instead of goog.inherits
This commit is contained in:
@@ -48,7 +48,7 @@ goog.require('ol.pointer.TouchSource');
|
||||
* @param {Element|HTMLDocument} element Viewport element.
|
||||
*/
|
||||
ol.pointer.PointerEventHandler = function(element) {
|
||||
goog.base(this);
|
||||
ol.events.EventTarget.call(this);
|
||||
|
||||
/**
|
||||
* @const
|
||||
@@ -77,7 +77,7 @@ ol.pointer.PointerEventHandler = function(element) {
|
||||
|
||||
this.registerSources();
|
||||
};
|
||||
goog.inherits(ol.pointer.PointerEventHandler, ol.events.EventTarget);
|
||||
ol.inherits(ol.pointer.PointerEventHandler, ol.events.EventTarget);
|
||||
|
||||
|
||||
/**
|
||||
@@ -398,7 +398,7 @@ ol.pointer.PointerEventHandler.prototype.wrapMouseEvent = function(eventType, ev
|
||||
*/
|
||||
ol.pointer.PointerEventHandler.prototype.disposeInternal = function() {
|
||||
this.unregister_();
|
||||
goog.base(this, 'disposeInternal');
|
||||
ol.events.EventTarget.prototype.disposeInternal.call(this);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user