Skip to content

crash on mobile and firefox, infinite loop #30

Open

Description

@badpenguin

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++;
}

Activity

  1. rtklwm commented on Feb 19, 2014

    @rtklwm

    EDIT: Sorry, I didn't realize these other threads were discussing this.
    #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.

  2. testuserlove commented on Jan 16, 2015

    @testuserlove

    Try as explained here.
    #48
    This works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions