use object format rather than dictionary

This commit is contained in:
Damien Churchill 2010-03-31 14:48:28 +01:00
parent 4296344502
commit 91692bc966

View file

@ -184,9 +184,9 @@
id: file,
text: file,
filename: file,
size: item['size'],
progress: item['progress'],
priority: item['priority']
size: item.size,
progress: item.progress,
priority: item.priority
});
parent.appendChild(child);
}
@ -197,10 +197,10 @@
id: file,
filename: file,
text: file, // this needs to be here for sorting
fileIndex: item['index'],
size: item['size'],
progress: item['progress'],
priority: item['priority'],
fileIndex: item.index,
size: item.size,
progress: item.progress,
priority: item.priority,
leaf: true,
iconCls: 'x-deluge-file',
uiProvider: Ext.ux.tree.TreeGridNodeUI