stan229
1 Nov 2011, 9:33 PM
REQUIRED INFORMATION
Ext version tested:
Sencha Touch 2.0 rev PR1
Browser versions tested against:
Chrome 15
Safari 5.1.1
Description:
When you have a list with a store that is smaller than the height of the list, it floods with errors trying to scroll
Steps to reproduce the problem:
Initialize store with small amount of Models
Scroll List
The result that was expected:
List would scroll without errors
The result that occurs instead:
Console gets flooded with the following errors
Uncaught TypeError: Cannot read property 'next' of undefined (Chrome)
TypeError: 'undefined' is not an object (evaluating 'a.next') (Safari)
Test Case:
//Model
Ext.define('SuperQualifier.model.Borrower', {
extend : 'Ext.data.Model',
fields : [{
name : "id",
type : "int"
}, {
name : "lastName",
type : "string"
}, {
name : "firstName",
type : "string"
}],
proxy: {
type:"rest",
url:'../borrower/getBorrowers',
reader: {
type: 'json',
root: ''
}
}
})
//Store
Ext.define('SuperQualifier.store.Borrowers', {
extend : 'Ext.data.Store',
model : 'SuperQualifier.model.Borrower',
requires : ['SuperQualifier.model.Borrower'],
getGroupString : function(record) {
return record.get('lastName')[0];
},
sorters: 'lastName'
});
//List
Ext.define('SuperQualifier.view.BorrowerList', {
extend : 'Ext.List',
xtype : 'borrowerlist',
config : {
store : 'Borrowers',
itemTpl : '<div class="contact"><strong>{firstName}</strong> {lastName}</div>',
grouped : true,
indexBar: true,
}
});
//JSON Data
[
• {
◦ "class": "com.breakpoint.Borrower",
◦ "id": 1,
◦ "dateCreated": "2011-11-02T05:26:32Z",
◦ "firstName": "Testfirst",
◦ "lastName": "Testlast",
◦ "lastUpdated": "2011-11-02T05:26:32Z",
◦ "qualifiers": [ ]
• }
]
HELPFUL INFORMATION
Operating System:
OSX 10.7.1
Ext version tested:
Sencha Touch 2.0 rev PR1
Browser versions tested against:
Chrome 15
Safari 5.1.1
Description:
When you have a list with a store that is smaller than the height of the list, it floods with errors trying to scroll
Steps to reproduce the problem:
Initialize store with small amount of Models
Scroll List
The result that was expected:
List would scroll without errors
The result that occurs instead:
Console gets flooded with the following errors
Uncaught TypeError: Cannot read property 'next' of undefined (Chrome)
TypeError: 'undefined' is not an object (evaluating 'a.next') (Safari)
Test Case:
//Model
Ext.define('SuperQualifier.model.Borrower', {
extend : 'Ext.data.Model',
fields : [{
name : "id",
type : "int"
}, {
name : "lastName",
type : "string"
}, {
name : "firstName",
type : "string"
}],
proxy: {
type:"rest",
url:'../borrower/getBorrowers',
reader: {
type: 'json',
root: ''
}
}
})
//Store
Ext.define('SuperQualifier.store.Borrowers', {
extend : 'Ext.data.Store',
model : 'SuperQualifier.model.Borrower',
requires : ['SuperQualifier.model.Borrower'],
getGroupString : function(record) {
return record.get('lastName')[0];
},
sorters: 'lastName'
});
//List
Ext.define('SuperQualifier.view.BorrowerList', {
extend : 'Ext.List',
xtype : 'borrowerlist',
config : {
store : 'Borrowers',
itemTpl : '<div class="contact"><strong>{firstName}</strong> {lastName}</div>',
grouped : true,
indexBar: true,
}
});
//JSON Data
[
• {
◦ "class": "com.breakpoint.Borrower",
◦ "id": 1,
◦ "dateCreated": "2011-11-02T05:26:32Z",
◦ "firstName": "Testfirst",
◦ "lastName": "Testlast",
◦ "lastUpdated": "2011-11-02T05:26:32Z",
◦ "qualifiers": [ ]
• }
]
HELPFUL INFORMATION
Operating System:
OSX 10.7.1