diff options
author | Fawn <fangrui_tong@brown.edu> | 2019-10-24 10:44:13 -0400 |
---|---|---|
committer | Fawn <fangrui_tong@brown.edu> | 2019-10-24 10:44:13 -0400 |
commit | 0f72e2acc66698247503246887a5f5bb572b2753 (patch) | |
tree | 9e50a4259e26ef50c31894a7e9b1e6282a267412 /src/client/util/SelectionManager.ts | |
parent | 45074de50007e0693df8835643464da962e62620 (diff) | |
parent | 31166219e473e105b8fd9d49627fd1df58822c55 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into textbox_fawn_fix
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r-- | src/client/util/SelectionManager.ts | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts index df1b46b33..2d717ca57 100644 --- a/src/client/util/SelectionManager.ts +++ b/src/client/util/SelectionManager.ts @@ -45,17 +45,6 @@ export namespace SelectionManager { } const manager = new Manager(); - reaction(() => manager.SelectedDocuments, sel => { - let targetColor = "#FFFFFF"; - if (sel.length > 0) { - let firstView = sel[0]; - let doc = firstView.props.Document; - let targetDoc = doc.isTemplate ? doc : Doc.GetProto(doc); - let stored = StrCast(targetDoc.backgroundColor); - stored.length > 0 && (targetColor = stored); - } - InkingControl.Instance.updateSelectedColor(targetColor); - }, { fireImmediately: true }); export function DeselectDoc(docView: DocumentView): void { manager.DeselectDoc(docView); |