Napkin is a rapid web prototyping tool intending to bridge the gap between product/UI/UX and development processes when building applications and sites.
Other
40
stars
6
forks
source link
Refactor project and screen pages to use Backbone.js. #84
I'm running into one main issue: with enough element moving/creation, I can sometimes get an element linked list to become circular. Note that each component has one of these linked lists that determine how the elements are placed within it. I'm still unsure what's wrong with my logic that is causing this problem, especially because it only happens sporadically. If you can find a way to reproduce it, let me know. Otherwise, I think I'll need to just stare at my code until something hits me.
You'll know when you've reproduced it when you suddenly see about 100 duplicate elements on the page that you did not add. I've added a check in my loop that prevents it running from over 100 iterations; it'll instead stop and print something along the lines of 'probably an infinite loop' in the console.
I'm running into one main issue: with enough element moving/creation, I can sometimes get an element linked list to become circular. Note that each component has one of these linked lists that determine how the elements are placed within it. I'm still unsure what's wrong with my logic that is causing this problem, especially because it only happens sporadically. If you can find a way to reproduce it, let me know. Otherwise, I think I'll need to just stare at my code until something hits me.
You'll know when you've reproduced it when you suddenly see about 100 duplicate elements on the page that you did not add. I've added a check in my loop that prevents it running from over 100 iterations; it'll instead stop and print something along the lines of 'probably an infinite loop' in the console.