Asset.images error with HTMLImageElement #1117

Closed
Draghmar opened this Issue Apr 5, 2012 · 4 comments

Projects

None yet

2 participants

@Draghmar

Hello
I don't know if this some bug or am I doing something wrong but if you open this link:
http://jsfiddle.net/cwZn4/3/
with console opened you will see that there is some error 404 with http://fiddle.jshell.net/cwZn4/3/show/%5Bobject%20HTMLImageElement%5D file.
You should also notice that there is no log entry when onProgress supposed to be called.

@arian
MooTools member

if you look at the docs: http://mootools.net/docs/more/Utilities/Assets#Asset:Asset-images
That should be an array of urls, instead of an collection if <img> tags.

@arian arian closed this Apr 5, 2012
@Draghmar

Yes I know that but when I tried something like this:
http://jsfiddle.net/cwZn4/4/
it still gave me this error. And I know that if I get sources for this collection than it would be ok...But Array.from() made me confused...

@arian
MooTools member

You're using an array of elements, not an array of strings with the URLs.

@Draghmar

Oh...you're right. I didn't think about it. Thanks for clarification. :)

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