diff --git a/packages/ember-data/lib/system/snapshot-record-array.js b/packages/ember-data/lib/system/snapshot-record-array.js index 071f2d53a38..eda8bfd6b79 100644 --- a/packages/ember-data/lib/system/snapshot-record-array.js +++ b/packages/ember-data/lib/system/snapshot-record-array.js @@ -11,14 +11,51 @@ @param {Object} meta */ function SnapshotRecordArray(recordArray, meta, adapterOptions) { + /** + An array of snapshots + @private + @property _snapshots + @type {Array} + */ this._snapshots = null; + /** + An array of records + @private + @property _recordArray + @type {Array} + */ this._recordArray = recordArray; + /** + Number of records in the array + @property length + @type {Number} + */ this.length = recordArray.get('length'); + /** + The type of the underlying records for the snapshots in the array, as a DS.Model + @property type + @type {DS.Model} + */ this.type = recordArray.get('type'); + /** + Meta object + @property meta + @type {Object} + */ this.meta = meta; + /** + A hash of adapter options + @property adapterOptions + @type {Object} + */ this.adapterOptions = adapterOptions; } +/** + Get snapshots of the underlying record array + @method snapshots + @return {Array} Array of snapshots +*/ SnapshotRecordArray.prototype.snapshots = function() { if (this._snapshots) { return this._snapshots;