kostik83
13 Jul 2010, 10:36 AM
Error: Uncaught TypeError: Cannot call method 'findParent' of null
Sometimes the target in Ext.List.getActiveGroupNode() does not exists, so i suggest to fix this error int he following way (by checking that target exists)
Ext.override(Ext.List, {
getActiveGroupNode : function() {
var x = this.pageBox.left + (this.pageBox.width / 2),
y = this.pageBox.top + 0,
target = Ext.Element.fromPoint(x, y);
return (target) ? (target.findParent('.x-list-group', null, true)) : null;
}
});
Sometimes the target in Ext.List.getActiveGroupNode() does not exists, so i suggest to fix this error int he following way (by checking that target exists)
Ext.override(Ext.List, {
getActiveGroupNode : function() {
var x = this.pageBox.left + (this.pageBox.width / 2),
y = this.pageBox.top + 0,
target = Ext.Element.fromPoint(x, y);
return (target) ? (target.findParent('.x-list-group', null, true)) : null;
}
});