mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 04:31:05 +00:00
Webpack build: bd00bc404c
This commit is contained in:
parent
6146da8ec7
commit
5b2e406103
2 changed files with 7 additions and 7 deletions
|
|
@ -495,15 +495,15 @@ class Collection extends Map {
|
||||||
}
|
}
|
||||||
|
|
||||||
set(key, val) {
|
set(key, val) {
|
||||||
super.set(key, val);
|
|
||||||
this._array = null;
|
this._array = null;
|
||||||
this._keyArray = null;
|
this._keyArray = null;
|
||||||
|
return super.set(key, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete(key) {
|
delete(key) {
|
||||||
super.delete(key);
|
|
||||||
this._array = null;
|
this._array = null;
|
||||||
this._keyArray = null;
|
this._keyArray = null;
|
||||||
|
return super.delete(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -803,11 +803,11 @@ class Collection extends Map {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the collections have identical key-value pairings.
|
* Checks if this collection shares identical key-value pairings with another.
|
||||||
* This is different to checking for equality using equal-signs, because
|
* This is different to checking for equality using equal-signs, because
|
||||||
* the collections may be different objects, but functionally identical.
|
* the collections may be different objects, but contain the same data.
|
||||||
* @param {Collection} collection Collection to compare with.
|
* @param {Collection} collection Collection to compare with
|
||||||
* @returns {boolean}
|
* @returns {boolean} Whether the collections have identical contents
|
||||||
*/
|
*/
|
||||||
equals(collection) {
|
equals(collection) {
|
||||||
if (this === collection) return true;
|
if (this === collection) return true;
|
||||||
|
|
|
||||||
2
discord.indev.min.js
vendored
2
discord.indev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue