X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/f5240829880f87e0cf581c6a296e436fdef0ef80..0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6:/src/data/Store.js diff --git a/src/data/Store.js b/src/data/Store.js index bc94a12c..d6ae2398 100644 --- a/src/data/Store.js +++ b/src/data/Store.js @@ -1,8 +1,8 @@ /*! - * Ext JS Library 3.3.0 - * Copyright(c) 2006-2010 Ext JS, Inc. - * licensing@extjs.com - * http://www.extjs.com/license + * Ext JS Library 3.3.1 + * Copyright(c) 2006-2010 Sencha Inc. + * licensing@sencha.com + * http://www.sencha.com/license */ /** * @class Ext.data.Store @@ -626,7 +626,7 @@ sortInfo: { * to add to the cache. See {@link #recordType}. */ add : function(records) { - var i, record, index; + var i, len, record, index; records = [].concat(records); if (records.length < 1) { @@ -745,7 +745,7 @@ sortInfo: { * @param {Ext.data.Record[]} records An Array of Ext.data.Record objects to add to the cache. */ insert : function(index, records) { - var i, record; + var i, len, record; records = [].concat(records); for (i = 0, len = records.length; i < len; i++) { @@ -1253,7 +1253,7 @@ myStore.reload(lastOptions); // private // Called as a callback by the Reader during a load operation. loadRecords : function(o, options, success){ - var i; + var i, len; if (this.isDestroyed === true) { return;