From: Vincent Vanwaelscappel Date: Fri, 1 Feb 2019 14:27:34 +0000 (+0100) Subject: wip #2570 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4a73220b710d05f5324fed367f127b7236eeaf14;p=fluidbook-html5.git wip #2570 @0:05 --- diff --git a/js/main.js b/js/main.js index f8104ac3..58e87d94 100644 --- a/js/main.js +++ b/js/main.js @@ -525,6 +525,9 @@ function getPublicationURL(id) { $(function () { $.fn.isLoaded = function () { + if ($(this).length === 0) { + return true; + } var img = $(this).get(0); if (img.readyState === 4 || img.readyState === 'complete') { return true;