use object format rather than dictionary

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

View file

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