dist/crocodoc.viewer.js
function () {
            this.preload();

            $loadImgPromise.done(function loadImgSuccess(img) {
                if (!imageLoaded) {
                    imageLoaded = true;
                    $img = $(img).appendTo($el);
                }
            });

            $loadImgPromise.fail(function loadImgFail(error) {
                imageLoaded = false;
                if (error) {
                    scope.broadcast('asseterror', error);
                }
            });

            return $loadImgPromise;
        }
function () {
            this.preload();

            $loadImgPromise.done(function loadImgSuccess(img) {
                if (!imageLoaded) {
                    imageLoaded = true;
                    $img = $(img).appendTo($el);
                }
            });

            $loadImgPromise.fail(function loadImgFail(error) {
                imageLoaded = false;
                if (error) {
                    scope.broadcast('asseterror', error);
                }
            });

            return $loadImgPromise;
        }
function ( ) { this . preload ( ) ; $loadImgPromise . done ( function loadImgSuccess ( img ) { if ( ! imageLoaded ) { imageLoaded = true ; $img = $ ( img ) . appendTo ( $el ) ; } } ) ; $loadImgPromise . fail ( function loadImgFail ( error ) { imageLoaded = false ; if ( error ) { scope . broadcast ( 'asseterror' , error ) ; } } ) ; return $loadImgPromise ; }
Load the image
@returns {$.Promise}    A jQuery Promise object
Load the image