diff --git a/tea-cup/src/TeaCup/Program.ts b/tea-cup/src/TeaCup/Program.ts index 009ba52..a85e2e6 100644 --- a/tea-cup/src/TeaCup/Program.ts +++ b/tea-cup/src/TeaCup/Program.ts @@ -47,7 +47,7 @@ interface ProgramState { class Guid { static newGuid() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { - var r = (Math.random() * 16) | 0, + const r = (Math.random() * 16) | 0, v = c == 'x' ? r : (r & 0x3) | 0x8; return v.toString(16); }); @@ -155,7 +155,7 @@ export class Program extends Component, Pro } setModel(model: Model, withSubs: boolean) { - this.setState((state, props) => { + this.setState(state => { let newSub: Sub; if (withSubs) { newSub = this.props.subscriptions(model);