{"ScriptPreparationCode":"var container = $(\u0027#container\u0027)\r\nvar itemCount = 500;\r\n\r\nfor (var i = 0; i \u003C itemCount; i\u002B\u002B) {\r\n container.append(\u0027\u003Cdiv\u003EItem \u0027 \u002B i \u002B \u0027\u003C/div\u003E\u0027);\r\n}\r\n\r\nvar items = container.children();","TestCases":[{"Name":".each loop and single on-assignement","Code":"items.each(function(index,item) {\r\n var $item = $(item);\r\n $item.on(\u0027click\u0027, function() { console.log(\u0027Item clicked\u0027); });\r\n});","IsDeferred":false},{"Name":"no loop and .on-assignement on list","Code":"items.on(\u0027click\u0027, function() { console.log(\u0027Item clicked\u0027); });","IsDeferred":false},{"Name":"assign event for each item","Code":"items.click(function() { console.log(\u0027Item clicked\u0027); });","IsDeferred":false}]}