Giter VIP home page Giter VIP logo

Comments (4)

dkern avatar dkern commented on May 24, 2024 1

Ahh well, yes, of course. I was thinking that would work. But on JS it's working this way. 😉
I will make this little change within the next update ...

from jquery.lazy.

dkern avatar dkern commented on May 24, 2024

Hi @zspitzer,

I'm actually not sure, how this could happen. Inside the for loop the object is given by items[i] to the inner function. This should mean, even if the object would be removed from the items array, it is still available to the inner loop. So _isInLoadableArea should still work. I have to test this somehow ...

Do you have an example where this happens to you? Can you create a fiddle?

And if you have such problem, do you already got a workaround?

Thank you so far!

from jquery.lazy.

zspitzer avatar zspitzer commented on May 24, 2024

I'm on holidays and thus dad duty at the moment , so i haven't had time to knock out a fiddle. The customer loader was async as it was doing some network calls , I think _lazyLoadItems might of been triggered again whilst waiting for the server to respond.

I encountered this with some content in a dashboard which involves nested instances of lazy loaders, I was previously having issues with the destroy and namespaces which you fixed recently and thought I'd try it out and encountered the exception.

but the fix is dead simple
for( var i = 0, l = items.length; i < l; i++ )
becomes
for( var i = 0; i < items.length; i++ )

from jquery.lazy.

dkern avatar dkern commented on May 24, 2024

fixed as of 1.7.3

from jquery.lazy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.