Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Prevent DOM updates after unbinding. #548

Merged
merged 2 commits into from Sep 16, 2014

Conversation

kadams54
Copy link
Contributor

Corrects bug https://launchpad.net/bugs/1368560. DOM updates were happening on a timeout for debouncing purposes, but that meant that they might happen after the DOM elements being updated (i.e., the databound DOM elements) were removed/destroyed. This change makes sure the timeout is also canceled as part of destruction.

@kadams54
Copy link
Contributor Author

QA

With the mv flag:

  1. Add a service to the canvas.
  2. Destroy it from the inspector.
  3. Verify that no error shows up in the console.

@jujugui
Copy link
Contributor

jujugui commented Sep 12, 2014

Test FAILed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/juju-gui/1829/

@jujugui
Copy link
Contributor

jujugui commented Sep 12, 2014

Test PASSed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/juju-gui/1831/

@mitechie
Copy link
Contributor

👍 Thanks. Looks like some proper cleanup added. Did not QA.

@huwshimi
Copy link
Member

QA OK 👍

As requested by @mitechie I'm going to :shipit:

@jujugui
Copy link
Contributor

jujugui commented Sep 16, 2014

Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/juju-gui-merge

jujugui added a commit that referenced this pull request Sep 16, 2014
Prevent DOM updates after unbinding.

Corrects bug https://launchpad.net/bugs/1368560. DOM updates were happening on a timeout for debouncing purposes, but that meant that they might happen after the DOM elements being updated (i.e., the databound DOM elements) were removed/destroyed. This change makes sure the timeout is also canceled as part of destruction.
@jujugui jujugui merged commit 09e3e30 into juju:develop Sep 16, 2014
@kadams54 kadams54 deleted the destory-service-1368560 branch November 24, 2014 21:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants