git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git]
/
src
/
data
/
reader
/
Array.js
diff --git
a/src/data/reader/Array.js
b/src/data/reader/Array.js
index
d4ae4f0
..
62340f7
100644
(file)
--- a/
src/data/reader/Array.js
+++ b/
src/data/reader/Array.js
@@
-63,16
+63,18
@@
Ext.define('Ext.data.reader.Array', {
this.callParent(arguments);
var fields = this.model.prototype.fields.items,
this.callParent(arguments);
var fields = this.model.prototype.fields.items,
+ i = 0,
length = fields.length,
extractorFunctions = [],
length = fields.length,
extractorFunctions = [],
-
i
;
+
map
;
- for (i = 0; i < length; i++) {
+ for (; i < length; i++) {
+ map = fields[i].mapping;
extractorFunctions.push(function(index) {
return function(data) {
return data[index];
};
extractorFunctions.push(function(index) {
return function(data) {
return data[index];
};
- }(
fields[i].mapping ||
i));
+ }(
map !== null ? map :
i));
}
this.extractorFunctions = extractorFunctions;
}
this.extractorFunctions = extractorFunctions;