Use Object<Foo, Bar> instead of Object.<Foo, Bar>

This commit is contained in:
Tim Schaub
2018-07-25 18:33:49 -07:00
parent d12ef20b12
commit affbf59b77
92 changed files with 334 additions and 334 deletions

View File

@@ -6,7 +6,7 @@ class EventSource {
/**
* @param {module:ol/pointer/PointerEventHandler} dispatcher Event handler.
* @param {!Object.<string, function(Event)>} mapping Event mapping.
* @param {!Object<string, function(Event)>} mapping Event mapping.
*/
constructor(dispatcher, mapping) {
@@ -18,7 +18,7 @@ class EventSource {
/**
* @private
* @const
* @type {!Object.<string, function(Event)>}
* @type {!Object<string, function(Event)>}
*/
this.mapping_ = mapping;
}

View File

@@ -148,7 +148,7 @@ class MouseSource extends EventSource {
/**
* @const
* @type {!Object.<string, Event|Object>}
* @type {!Object<string, Event|Object>}
*/
this.pointerMap = dispatcher.pointerMap;

View File

@@ -157,7 +157,7 @@ class MsSource extends EventSource {
/**
* @const
* @type {!Object.<string, MSPointerEvent|Object>}
* @type {!Object<string, MSPointerEvent|Object>}
*/
this.pointerMap = dispatcher.pointerMap;
}

View File

@@ -52,7 +52,7 @@ class PointerEvent extends Event {
*
* @param {string} type The type of the event to create.
* @param {Event} originalEvent The event.
* @param {Object.<string, ?>=} opt_eventDict An optional dictionary of
* @param {Object<string, ?>=} opt_eventDict An optional dictionary of
* initial event properties.
*/
constructor(type, originalEvent, opt_eventDict) {
@@ -202,7 +202,7 @@ class PointerEvent extends Event {
/**
* @private
* @param {Object.<string, ?>} eventDict The event dictionary.
* @param {Object<string, ?>} eventDict The event dictionary.
* @return {number} Button indicator.
*/
getButtons_(eventDict) {
@@ -243,7 +243,7 @@ class PointerEvent extends Event {
/**
* @private
* @param {Object.<string, ?>} eventDict The event dictionary.
* @param {Object<string, ?>} eventDict The event dictionary.
* @param {number} buttons Button indicator.
* @return {number} The pressure.
*/

View File

@@ -100,12 +100,12 @@ class PointerEventHandler extends EventTarget {
/**
* @const
* @type {!Object.<string, Event|Object>}
* @type {!Object<string, Event|Object>}
*/
this.pointerMap = {};
/**
* @type {Object.<string, function(Event)>}
* @type {Object<string, function(Event)>}
* @private
*/
this.eventMap_ = {};

View File

@@ -114,7 +114,7 @@ class TouchSource extends EventSource {
/**
* @const
* @type {!Object.<string, Event|Object>}
* @type {!Object<string, Event|Object>}
*/
this.pointerMap = dispatcher.pointerMap;