No width/height set for items. This will cause an infinite loop. Aborting

前端 未结 11 1445
太阳男子
太阳男子 2020-12-13 23:46

I am using jcarousel, and on window resizing I am getting the error:

jCarousel: No width/height set for items. This will cause an infinite loop. Abo

11条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-14 00:15

    SOLUTION: Not sure if this is really a solution or workaround, but it does the job of stopping the nagging popup box once and for all (while permitting jCarousel functionality).

    1. Open jquery.jcarousel.pack.js in the ../jcarousel/lib/ directory.

    2. Seach for the word "alert" and you should find a snippet of code like this: Aborting|loop|infinite|an|cause|will|This|items|set|No|jCarousel|alert|class|

    3. Replace "alert" with "isNan": Aborting|loop|infinite|an|cause|will|This|items|set|No|jCarousel|isNan|class|

    4. Refresh the webpage that loads jCarousel and you should no longer get the infinite loop popup error!

提交回复
热议问题