-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.load() doesn't work. #49
Comments
Hey. That sounds odd. Do you have a live example? How're you using it? Show code or it didn't happend ;) |
@wdews If you read the introduction it says it's NOT a jQuery plugin, this would force me to assume an HTML element is expected. |
I have the same question. It doesn't matter if I use: bLazy.load(document.getElementsByClassName('highlight-item-img'), true); I always get the same error message: |
returns an array even if its only one element If you try
You need to pass in one element.If you read the source you can see the function expects only ONE element.
I would suggest that the script have a type check somewhere to prevent this error although it is very straight forward. |
Fixed in v. 1.5.0, now you can pass a single element, a list of elements or jquery elements |
Looks like the code the .load() function references is faulty. "loadImage()" simply doesn't work. At all. It's also unclear whether you pass it a jQuery object or a native DOM element. I've tried both, doesn't work with either.
The text was updated successfully, but these errors were encountered: