diff options
author | bob <bcz@cs.brown.edu> | 2019-02-06 09:44:45 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-06 09:44:45 -0500 |
commit | 7598b88bbad9690c59f8b164144aa0d02a0a211f (patch) | |
tree | a05c7f0884139af014daae0cae09ba2e852d90ef /src/views/nodes/DocumentView.tsx | |
parent | e59dbb02175ec394a35c496201da71c90cd6a50a (diff) |
working stub version
Diffstat (limited to 'src/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/views/nodes/DocumentView.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/views/nodes/DocumentView.tsx b/src/views/nodes/DocumentView.tsx index 69184cf16..cfd894a38 100644 --- a/src/views/nodes/DocumentView.tsx +++ b/src/views/nodes/DocumentView.tsx @@ -129,17 +129,15 @@ export class DocumentView extends React.Component<DocumentViewProps> { render() { let bindings = { ...this.props } as any; for (const key of this.layoutKeys) { - //let val = this.props.Document.GetField(key); // bcz: ARGH! Why do I need to call this here? (e.g., it's needed and used in ImageBox- shouldn't that trigger a re-render?) - bindings[key.Name + "Key"] = key; + bindings[key.Name + "Key"] = key; // this maps string values of the form <keyname>Key to an actual key Kestore.keyname e.g, "DataKey" => KeyStore.Data } for (const key of this.layoutFields) { let field = this.props.Document.GetField(key); bindings[key.Name] = field && field != WAITING ? field.GetValue() : field; } if (bindings.DocumentView === undefined) { - bindings.DocumentView = this; + bindings.DocumentView = this; // set the DocumentView to this if it hasn't already been set by a sub-class during its render method. } - console.log("DocumentView Rendering " + this.props.Document.Title); return ( <div className="node" ref={this._mainCont} style={{ width: "100%", height: "100%", }}> <JsxParser |