{"ScriptPreparationCode":"var element\t = document.getElementById(\u0027element\u0027);\r\nvar iterations = 250;\r\nvar dummyString = \u0027Hello\u0027;\r\n","TestCases":[{"Name":"Anonymous function","Code":"for (var i = 0; i \u003C iterations; i\u002B\u002B) {\r\n element.addEventListener(\u0027click\u0027, function() {\r\n element.textContent = dummyString;\r\n });\r\n}","IsDeferred":false},{"Name":"Named function as parameter","Code":"for (var i = 0; i \u003C iterations; i\u002B\u002B) {\r\n element.addEventListener(\u0027click\u0027, function setText() {\r\n element.textContent = dummyString;\r\n });\r\n}","IsDeferred":false},{"Name":"External function","Code":"function setText() {\r\n \u0027use strict\u0027;\r\n element.textContent = dummyString;\r\n}\r\n\r\nfor (var i = 0; i \u003C iterations; i\u002B\u002B) {\r\n element.addEventListener(\u0027click\u0027, setText);\r\n}","IsDeferred":false}]}