Use ol.inherits instead of goog.inherits
This commit is contained in:
@@ -46,7 +46,7 @@ ol.pointer.MouseSource = function(dispatcher) {
|
||||
'mouseover': this.mouseover,
|
||||
'mouseout': this.mouseout
|
||||
};
|
||||
goog.base(this, dispatcher, mapping);
|
||||
ol.pointer.EventSource.call(this, dispatcher, mapping);
|
||||
|
||||
/**
|
||||
* @const
|
||||
@@ -60,7 +60,7 @@ ol.pointer.MouseSource = function(dispatcher) {
|
||||
*/
|
||||
this.lastTouches = [];
|
||||
};
|
||||
goog.inherits(ol.pointer.MouseSource, ol.pointer.EventSource);
|
||||
ol.inherits(ol.pointer.MouseSource, ol.pointer.EventSource);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -49,7 +49,7 @@ ol.pointer.MsSource = function(dispatcher) {
|
||||
'MSGotPointerCapture': this.msGotPointerCapture,
|
||||
'MSLostPointerCapture': this.msLostPointerCapture
|
||||
};
|
||||
goog.base(this, dispatcher, mapping);
|
||||
ol.pointer.EventSource.call(this, dispatcher, mapping);
|
||||
|
||||
/**
|
||||
* @const
|
||||
@@ -69,7 +69,7 @@ ol.pointer.MsSource = function(dispatcher) {
|
||||
'mouse'
|
||||
];
|
||||
};
|
||||
goog.inherits(ol.pointer.MsSource, ol.pointer.EventSource);
|
||||
ol.inherits(ol.pointer.MsSource, ol.pointer.EventSource);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -49,9 +49,9 @@ ol.pointer.NativeSource = function(dispatcher) {
|
||||
'gotpointercapture': this.gotPointerCapture,
|
||||
'lostpointercapture': this.lostPointerCapture
|
||||
};
|
||||
goog.base(this, dispatcher, mapping);
|
||||
ol.pointer.EventSource.call(this, dispatcher, mapping);
|
||||
};
|
||||
goog.inherits(ol.pointer.NativeSource, ol.pointer.EventSource);
|
||||
ol.inherits(ol.pointer.NativeSource, ol.pointer.EventSource);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -49,7 +49,7 @@ goog.require('ol.events.Event');
|
||||
* initial event properties.
|
||||
*/
|
||||
ol.pointer.PointerEvent = function(type, originalEvent, opt_eventDict) {
|
||||
goog.base(this, type);
|
||||
ol.events.Event.call(this, type);
|
||||
|
||||
/**
|
||||
* @const
|
||||
@@ -192,7 +192,7 @@ ol.pointer.PointerEvent = function(type, originalEvent, opt_eventDict) {
|
||||
};
|
||||
}
|
||||
};
|
||||
goog.inherits(ol.pointer.PointerEvent, ol.events.Event);
|
||||
ol.inherits(ol.pointer.PointerEvent, ol.events.Event);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ ol.pointer.TouchSource = function(dispatcher, mouseSource) {
|
||||
'touchend': this.touchend,
|
||||
'touchcancel': this.touchcancel
|
||||
};
|
||||
goog.base(this, dispatcher, mapping);
|
||||
ol.pointer.EventSource.call(this, dispatcher, mapping);
|
||||
|
||||
/**
|
||||
* @const
|
||||
@@ -81,7 +81,7 @@ ol.pointer.TouchSource = function(dispatcher, mouseSource) {
|
||||
*/
|
||||
this.resetId_ = undefined;
|
||||
};
|
||||
goog.inherits(ol.pointer.TouchSource, ol.pointer.EventSource);
|
||||
ol.inherits(ol.pointer.TouchSource, ol.pointer.EventSource);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user