This commit is contained in:
Travis CI 2017-01-08 12:00:44 +00:00
parent 42ab64e37c
commit 552e124fbe
2 changed files with 5 additions and 3 deletions

View file

@ -507,17 +507,19 @@ class Collection extends Map {
/** /**
* Cached array for the `array()` method - will be reset to `null` whenever `set()` or `delete()` are called. * Cached array for the `array()` method - will be reset to `null` whenever `set()` or `delete()` are called.
* @name Collection#_array
* @type {?Array} * @type {?Array}
* @private * @private
*/ */
this._array = null; Object.defineProperty(this, '_array', { value: null, writable: true, configurable: true });
/** /**
* Cached array for the `keyArray()` method - will be reset to `null` whenever `set()` or `delete()` are called. * Cached array for the `keyArray()` method - will be reset to `null` whenever `set()` or `delete()` are called.
* @name Collection#_keyArray
* @type {?Array} * @type {?Array}
* @private * @private
*/ */
this._keyArray = null; Object.defineProperty(this, '_keyArray', { value: null, writable: true, configurable: true });
} }
set(key, val) { set(key, val) {

File diff suppressed because one or more lines are too long