Nested icon indicating copy to clipboard operation
Nested copied to clipboard

crash on mobile and firefox, infinite loop

Open badpenguin opened this issue 12 years ago • 2 comments

I checked the code and found this infinite loop i added a watchdog to avoid the problem but still the bug exists in _renderGrid at line 295

$maxloop = 1000; while ($maxloop>0) { $maxloop--; if(this.columns === col) { this.columns++; }

badpenguin avatar Dec 05 '13 14:12 badpenguin

EDIT: Sorry, I didn't realize these other threads were discussing this. https://github.com/suprb/Nested/issues/21

My implementation crashes any browser when I narrow that browser to ~576px or less. My minWidth is 180, minColulmn =1. This makes the issue obvious in phones, portrait view.

I found that http://suprb.com/apps/nested/ does the same thing, although maybe at a narrower width.

I wasn't sure what was going on until I tried in Firefox, which prompts a "Warning: Unresponsive script" and "Script: http://suprb.com/apps/nested/js/jquery.nested.js:295" like the OP noted.

rtklwm avatar Feb 19 '14 15:02 rtklwm

Try as explained here. https://github.com/suprb/Nested/issues/48 This works for me.

testuserlove avatar Jan 16 '15 18:01 testuserlove