Skip to content

Commit

Permalink
Make add/remove subObject private
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsw committed Jan 31, 2024
1 parent 65f233e commit 73d6d2f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/eds.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ class DataObject extends EventEmitter {
* @param {DataObject | object} data - An existing {@link DataObject} or
* the data to create one.
* @returns {DataObject} new DataObject.
* @protected
* @see {@link Eds#addSubEntry}
* @private
*/
addSubObject(subIndex, data) {
if (!this._subObjects)
Expand Down Expand Up @@ -590,11 +591,12 @@ class DataObject extends EventEmitter {
}

/**
* Remove a sub-entry from the array and return it.
* Remove a sub-entry and return it.
*
* @param {number} subIndex - sub-entry index to remove.
* @returns {DataObject} removed DataObject.
* @protected
* @see {@link Eds#removeSubEntry}
* @private
*/
removeSubObject(subIndex) {
if (!this._subObjects)
Expand Down

0 comments on commit 73d6d2f

Please sign in to comment.