X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6:/src/data/ArrayReader.js diff --git a/src/data/ArrayReader.js b/src/data/ArrayReader.js index 57193627..4a2ec6d0 100644 --- a/src/data/ArrayReader.js +++ b/src/data/ArrayReader.js @@ -1,8 +1,8 @@ /*! - * Ext JS Library 3.1.0 - * 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 @@ -58,6 +58,7 @@ Ext.data.ArrayReader = Ext.extend(Ext.data.JsonReader, { recordType = this.recordType, fields = recordType.prototype.fields, records = [], + success = true, v; var root = this.getRoot(o); @@ -86,8 +87,15 @@ 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 };