JSbin: http://jsbin.com/oxugef/1/edit
I am attempting to slice an array into smaller subarrays and iterate through them in order to create a table of divs that are evenly divided. Unfortunately, there seems to be an issue where I am unknowingly overwriting some models during the loop, leading to unexpected inconsistencies. Despite my efforts, I have been unable to pinpoint exactly which model is being overwritten.
Here is an example of what I am aiming for:
data = {"key1": [1,2,3,4,...] //val1
, ...}
divs:
div.key1
div1,div2,div3,div4,div5
div6,div7,...
div.key2
div21,div22,div23,div24,div25
div26,div27,...
...
The layout of the divs appears as intended, but the console keeps getting flooded with "...Aborting" error logs.
Where could I be going wrong that is causing this error to occur?