X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6:/docs/source/ArrayReader.html diff --git a/docs/source/ArrayReader.html b/docs/source/ArrayReader.html index def831ea..05041671 100644 --- a/docs/source/ArrayReader.html +++ b/docs/source/ArrayReader.html @@ -1,15 +1,16 @@ + The source code
/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * 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.ArrayReader @@ -62,18 +63,12 @@ Ext.data.ArrayReader = Ext.extend(Ext.data.JsonReader, { this.arrayData = o; var s = this.meta, sid = s ? Ext.num(s.idIndex, s.id) : null, - recordType = this.recordType, + recordType = this.recordType, fields = recordType.prototype.fields, records = [], + success = true, v; - if(!this.getRoot) { - this.getRoot = s.root ? this.getJsonAccessor(s.root) : function(p) {return p;}; - if(s.totalProperty) { - this.getTotal = this.getJsonAccessor(s.totalProperty); - } - } - var root = this.getRoot(o); for(var i = 0, len = root.length; i < len; i++) { @@ -100,12 +95,19 @@ Ext.data.ArrayReader = Ext.extend(Ext.data.JsonReader, { totalRecords = v; } } + if(s.successProperty){ + v = this.getSuccess(o); + if(v === false || v === 'false'){ + success = false; + } + } return { + success : success, records : records, totalRecords : totalRecords }; } -});
+}); \ No newline at end of file