recordset-base-debug.js revision b41c27a66cb2271249d8117d3d5395ab17594f86
1549N/A initializer: function(o) {
1549N/A destructor: function() {
1549N/A initializer: function() {
1549N/A this._recordsetChanged();
1549N/A this._syncHashTable();
1549N/A destructor: function() {
_defAddFn: function(e) {
index++;
_defRemoveFn: function(e) {
_defEmptyFn: function(e) {
this._items = [];
_defUpdateFn: function(e) {
_defAddHash: function(e) {
_defRemoveHash: function(e) {
_defUpdateHash: function(e) {
_defEmptyHash: function() {
_setHashTable: function() {
for (; i<len; i++) {
return obj;
var oRec;
return oRec;
* Event that is fired whenever the recordset is changed. Note that multiple simultaneous changes still fires this event once.
* (ie: Adding multiple records via an array will only fire this event once at the completion of all the additions)
_recordsetChanged: function() {
_syncHashTable: function() {
this._defAddHash(e);
this._defRemoveHash(e);
this._defUpdateHash(e);
this._defEmptyHash();
getRecord: function(i) {
return this._items[i];
getRecordByIndex: function(i) {
return this._items[i];
for(; i<range; i++) {
return returnedRecords;
getLength: function() {
return this.size();
for( ; i < len; i++) {
return retVals;
* @param oData {Y.Record, Object Literal, Array} A Y.Record instance, An object literal of data or an array of object literals
* @return {object} An object literal with two properties: "data" which contains array of Y.Record(s) and "index" which contains the index where the Y.Record(s) were added
* @return {object} An object literal with two properties: "data" which contains the removed set {Y.Record or Y.Recordset} and "index" which contains the index where the Y.Record(s) were removed from
var remRecords=[];
empty: function() {
//Whatever is passed in, we are changing it to an array so that it can be easily iterated in the _defUpdateFn method
ATTRS: {
records: {
getter: function () {
return Y.Array(this._items);
var records = [];
//see http://developer.yahoo.com/yui/3/api/Attribute.html#method_addAttr for details on this
lazyAdd: false
table: {
key: {