Replace google closure syntax = with brackets around name
This commit is contained in:
@@ -22,8 +22,8 @@ const Property = {
|
||||
export class CollectionEvent extends Event {
|
||||
/**
|
||||
* @param {import("./CollectionEventType.js").default} type Type.
|
||||
* @param {*=} opt_element Element.
|
||||
* @param {number=} opt_index The index of the added or removed element.
|
||||
* @param {*} [opt_element] Element.
|
||||
* @param {number} [opt_index] The index of the added or removed element.
|
||||
*/
|
||||
constructor(type, opt_element, opt_index) {
|
||||
super(type);
|
||||
@@ -65,8 +65,8 @@ export class CollectionEvent extends Event {
|
||||
*/
|
||||
class Collection extends BaseObject {
|
||||
/**
|
||||
* @param {Array<T>=} opt_array Array.
|
||||
* @param {Options=} opt_options Collection options.
|
||||
* @param {Array<T>} [opt_array] Array.
|
||||
* @param {Options} [opt_options] Collection options.
|
||||
*/
|
||||
constructor(opt_array, opt_options) {
|
||||
super();
|
||||
@@ -277,7 +277,7 @@ class Collection extends BaseObject {
|
||||
/**
|
||||
* @private
|
||||
* @param {T} elem Element.
|
||||
* @param {number=} opt_except Optional index to ignore.
|
||||
* @param {number} [opt_except] Optional index to ignore.
|
||||
*/
|
||||
assertUnique_(elem, opt_except) {
|
||||
for (let i = 0, ii = this.array_.length; i < ii; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user