Closed akmur closed 10 years ago
Could you provide an example with html code so I can understand the issue. Apparantly it cannot find any children but I tested that situation. To fix it I need more information/example to identify the cause.
Thnx! ;) Op 6 okt. 2013 03:38 schreef "Alex Muraro" notifications@github.com:
I'm getting this error:
Uncaught TypeError: Cannot read property '1' of undefined
on this line:
inspect(target.childNodes[1].children[1]);
Any help?
— Reply to this email directly or view it on GitHubhttps://github.com/joeyvandijk/rimg/issues/3 .
Sure, here you go
https://gist.github.com/akmur/b5c0c6c9c34292e4949e
Your script is in plugins.js, loaded at bottom, and it is as such
Thank you for the example and the issue had to do with the HTML comments like
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
which I did not test yet. My mistake, but thank you for your example, so 0.4.0 will work (I've tested this situation now) and you will be shown your image.
If you have any questions/remarks, let me know! :)
I'm getting this error:
Uncaught TypeError: Cannot read property '1' of undefined
on this line:
inspect(target.childNodes[1].children[1]);
Any help?