{"ScriptPreparationCode":null,"TestCases":[{"Name":"Single anonymous method per element","Code":"class El extends HTMLElement {\r\n properties = {\r\n onClick: () =\u003E console.log(this.hi)\r\n }\r\n \r\n constructor () {\r\n super()\r\n this.hi = \u0027okay\u0027\r\n }\r\n \r\n connectedCallback () {\r\n \t this.properties.onClick()\r\n }\r\n}\r\n\r\nif (!customElements.get(\u0027my-el\u0027)) {\r\n customElements.define(\u0027my-el\u0027, El)\r\n}","IsDeferred":false},{"Name":"Single reused method for all elements","Code":"function onClick () {\r\n console.log(this.hi)\r\n}\r\n\r\nclass El extends HTMLElement {\r\n constructor () {\r\n super()\r\n this.hi = \u0027okay\u0027\r\n }\r\n \r\n connectedCallback () {\r\n \t onClick.bind(this)\r\n }\r\n}\r\n\r\nif (!customElements.get(\u0027my-el\u0027)) {\r\n customElements.define(\u0027my-el\u0027, El)\r\n}","IsDeferred":false}]}