Commit 5b8e536a authored by Joel Einbinder's avatar Joel Einbinder Committed by Commit Bot

DevTools: Overrides: Rebind to the latest network UISourceCode

Bug: 760316
Change-Id: I2e1a5b06e1b3b5e2e1e3151ca2299172b789ffa5
Reviewed-on: https://chromium-review.googlesource.com/827941Reviewed-by: default avatarPavel Feldman <pfeldman@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526582}
parent 1b64e972
......@@ -211,8 +211,10 @@ Persistence.NetworkPersistenceManager = class extends Common.Object {
* @param {!Workspace.UISourceCode} fileSystemUISourceCode
*/
async _bind(networkUISourceCode, fileSystemUISourceCode) {
if (networkUISourceCode[this._bindingSymbol] || fileSystemUISourceCode[this._bindingSymbol])
return;
if (networkUISourceCode[this._bindingSymbol])
this._unbind(networkUISourceCode);
if (fileSystemUISourceCode[this._bindingSymbol])
this._unbind(fileSystemUISourceCode);
var binding = new Persistence.PersistenceBinding(networkUISourceCode, fileSystemUISourceCode, true);
networkUISourceCode[this._bindingSymbol] = binding;
fileSystemUISourceCode[this._bindingSymbol] = binding;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment