Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2846)

Issue 14489044: Deletes the databindings when they are detached

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by jeff.pihach
Modified:
10 years, 6 months ago
Reviewers:
mp+190489
Visibility:
Public.

Description

Deletes the databindings when they are detached Because the left panel slot on the inspector gets destroyed when switching between the unit/charm details views the databinding would attempt to rebind to elements which didn't exist any longer. This branch handles removing the databindings from the master list of bindings when they are detached. https://code.launchpad.net/~hatch/juju-gui/charm-details-link-fix/+merge/190489 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Deletes the databindings when they are detached #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -2 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/databinding.js View 1 1 chunk +23 lines, -1 line 0 comments Download
M app/views/viewlet-manager.js View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 3
jeff.pihach
Please take a look.
10 years, 6 months ago (2013-10-10 21:12:55 UTC) #1
benjamin.saller
Thanks for this, some comments below. My reading on the loop might be wrong but ...
10 years, 6 months ago (2013-10-10 21:22:17 UTC) #2
jeff.pihach
10 years, 6 months ago (2013-10-11 03:26:27 UTC) #3
*** Submitted:

Deletes the databindings when they are detached

Because the left panel slot on the inspector gets destroyed
when switching between the unit/charm details views the databinding
would attempt to rebind to elements which didn't exist any longer.

This branch handles removing the databindings from the master list
of bindings when they are detached.

R=benjamin.saller
CC=
https://codereview.appspot.com/14489044

https://codereview.appspot.com/14489044/diff/1/app/views/viewlet-manager.js
File app/views/viewlet-manager.js (right):

https://codereview.appspot.com/14489044/diff/1/app/views/viewlet-manager.js#n...
app/views/viewlet-manager.js:424: existing.container.remove(true);
Right I was thinking the same actually, the destroy() method is an empty
function, and needs to be provided at the viewlet level - I can add that in this
branch.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b