3 * @class Ext.data.ResultSet
6 * <p>Simple wrapper class that represents a set of records returned by a Proxy.</p>
9 * Creates the new ResultSet
11 Ext.define('Ext.data.ResultSet', {
13 * @cfg {Boolean} loaded
14 * True if the records have already been loaded. This is only meaningful when dealing with
21 * The number of records in this ResultSet. Note that total may differ from this number
27 * The total number of records reported by the data source. This ResultSet may form a subset of
28 * those records (see count)
33 * @cfg {Boolean} success
34 * True if the ResultSet loaded successfully, false if any errors were encountered
39 * @cfg {Array} records The array of record instances. Required
42 constructor: function(config) {
43 Ext.apply(this, config);
46 * DEPRECATED - will be removed in Ext JS 5.0. This is just a copy of this.total - use that instead
47 * @property totalRecords
50 this.totalRecords = this.total;
52 if (config.count === undefined) {
53 this.count = this.records.length;