~juju-gui/juju-gui/trunk

Viewing all changes in revision 305.

  • Committer: Matthew Scott
  • Date: 2013-01-08 16:50:30 UTC
  • mfrom: (299.2.5 duplicates-1095761)
  • Revision ID: matthew.scott@canonical.com-20130108165030-ejlolaia3s21984b
Prevent duplicate nodes in services.

drawService was being called for all nodes on update, which was appending new nodes to the DOM (for the most part invisibly, but still not good).  Instead, new services are filled with the empty requisites for a service block, and then the internals are updated on update to match the DB.  A further step (not taken here for time's sake) would be to only update services affected by the update call.  Additionally, some comments were out of date, and these were cleaned up.

R=gary.poster, bcsaller
CC=
https://codereview.appspot.com/7066050

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: