Use Array<Foo> instead of Array.<Foo>

This commit is contained in:
Tim Schaub
2018-07-25 18:32:43 -07:00
parent 5a6502572f
commit d12ef20b12
184 changed files with 1194 additions and 1194 deletions

View File

@@ -25,7 +25,7 @@ class EventSource {
/**
* List of events supported by this source.
* @return {Array.<string>} Event names
* @return {Array<string>} Event names
*/
getEvents() {
return Object.keys(this.mapping_);

View File

@@ -154,7 +154,7 @@ class MouseSource extends EventSource {
/**
* @const
* @type {Array.<module:ol/pixel~Pixel>}
* @type {Array<module:ol/pixel~Pixel>}
*/
this.lastTouches = [];
}

View File

@@ -36,7 +36,7 @@ import EventSource from '../pointer/EventSource.js';
/**
* @const
* @type {Array.<string>}
* @type {Array<string>}
*/
const POINTER_TYPES = [
'',

View File

@@ -45,7 +45,7 @@ import TouchSource from '../pointer/TouchSource.js';
/**
* Properties to copy when cloning an event, with default values.
* @type {Array.<Array>}
* @type {Array<Array>}
*/
const CLONE_PROPS = [
// MouseEvent
@@ -111,7 +111,7 @@ class PointerEventHandler extends EventTarget {
this.eventMap_ = {};
/**
* @type {Array.<module:ol/pointer/EventSource>}
* @type {Array<module:ol/pointer/EventSource>}
* @private
*/
this.eventSourceList_ = [];
@@ -203,7 +203,7 @@ class PointerEventHandler extends EventTarget {
/**
* Setup listeners for the given events.
* @private
* @param {Array.<string>} events List of events.
* @param {Array<string>} events List of events.
*/
addEvents_(events) {
events.forEach(function(eventName) {
@@ -214,7 +214,7 @@ class PointerEventHandler extends EventTarget {
/**
* Unregister listeners for the given events.
* @private
* @param {Array.<string>} events List of events.
* @param {Array<string>} events List of events.
*/
removeEvents_(events) {
events.forEach(function(e) {