diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-04-27 02:56:11 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-04-27 02:56:11 -0400 |
commit | defb7f42492def07befe63c4c6075fe47073cae9 (patch) | |
tree | b8c436bfa38036a2108d46f4f56ccfaafc890a8d /src/client/views/nodes/DocumentContentsView.tsx | |
parent | 7f6bc06f72e070bd8b45eba8b4c0669ee398387b (diff) | |
parent | fc470b25759e8f051dc527066f9bebcaf5e7707d (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/nodes/DocumentContentsView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentContentsView.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/nodes/DocumentContentsView.tsx b/src/client/views/nodes/DocumentContentsView.tsx index 8582f92ed..cd78ac7b3 100644 --- a/src/client/views/nodes/DocumentContentsView.tsx +++ b/src/client/views/nodes/DocumentContentsView.tsx @@ -78,7 +78,7 @@ export class HTMLtag extends React.Component<HTMLtagProps> { const style: { [key: string]: any } = {}; const divKeys = OmitKeys(this.props, ["children", "htmltag", "RootDoc", "Document", "key", "onInput", "onClick", "__proto__"]).omit; Object.keys(divKeys).map((prop: string) => { - let p = (this.props as any)[prop] as string; + const p = (this.props as any)[prop] as string; const replacer = (match: any, expr: string, offset: any, string: any) => { // bcz: this executes a script to convert a propery expression string: { script } into a value return ScriptField.MakeFunction(expr, { self: Doc.name, this: Doc.name })?.script.run({ self: this.props.RootDoc, this: this.props.Document }).result as string || ""; }; @@ -178,9 +178,9 @@ export class DocumentContentsView extends React.Component<DocumentViewProps & { } return undefined; // add input function to props - } - let onClick = makeFuncProp("onClick"); - let onInput = makeFuncProp("onInput"); + }; + const onClick = makeFuncProp("onClick"); + const onInput = makeFuncProp("onInput"); const bindings = this.CreateBindings(onClick, onInput); // layoutFrame = splits.length > 1 ? splits[0] + splits[1].replace(/{([^{}]|(?R))*}/, replacer4) : ""; // might have been more elegant if javascript supported recursive patterns |