webui-aria2/js/ctrls
Nils Maier 71d66758e0 Improve ngWatch time significantly
Angular uses dirty-checking for data-bindings. This is OK for POD types,
but when it comes to objects, incl. arrays, just stuffing in the new
array without checking for changed content will make angular think
something has changed and update the DOM when there really was no change
at all. So do not blindly copy over objects and arrays anymore.

Also, since webui-aria2 does not use all `bittorrent` and `file` fields,
there is no point in keeping all fields around, causing unnecessary
angular invalidations.

With this commit, the update code runs in about 1/10th of the time it
did before on my system (Chrome/Firefox) when using displaying many
torrent downloads with many files.
2014-02-20 08:20:01 +01:00
..
alert.js tweaked the websocket error message, and finally commited something after a while ;) 2013-06-22 21:04:37 +01:00
download.js Improve ngWatch time significantly 2014-02-20 08:20:01 +01:00
modal.js further refined connection handling in angular and added cookie support 2013-03-11 19:16:48 +01:00
nav.js TONS of features and refinements, quick access settings finally landed :) 2013-06-23 22:02:50 +02:00
props.js TONS of features and refinements, quick access settings finally landed :) 2013-06-23 22:02:50 +02:00