dist/crocodoc.viewer.js
function createPages() {
        var i,
            pages = [],
            page,
            start = config.pageStart - 1,
            end = config.pageEnd,
            links = sortPageLinks();

        //initialize pages
        for (i = start; i < end; i++) {
            page = scope.createComponent('page');
            page.init(config.$pages.eq(i - start), {
                index: i,
                status: getInitialPageStatus(i),
                enableLinks: config.enableLinks,
                links: links[i],
                pageScale: config.pageScale,
                useSVG: config.useSVG
            });
            pages.push(page);
        }
        config.pages = pages;
    }
function createPages() {
        var i,
            pages = [],
            page,
            start = config.pageStart - 1,
            end = config.pageEnd,
            links = sortPageLinks();

        //initialize pages
        for (i = start; i < end; i++) {
            page = scope.createComponent('page');
            page.init(config.$pages.eq(i - start), {
                index: i,
                status: getInitialPageStatus(i),
                enableLinks: config.enableLinks,
                links: links[i],
                pageScale: config.pageScale,
                useSVG: config.useSVG
            });
            pages.push(page);
        }
        config.pages = pages;
    }
function createPages ( ) { var i , pages = [ ] , page , start = config . pageStart - 1 , end = config . pageEnd , links = sortPageLinks ( ) ; //initialize pages for ( i = start ; i < end ; i ++ ) { page = scope . createComponent ( 'page' ) ; page . init ( config . $pages . eq ( i - start ) , { index : i , status : getInitialPageStatus ( i ) , enableLinks : config . enableLinks , links : links [ i ] , pageScale : config . pageScale , useSVG : config . useSVG } ) ; pages . push ( page ) ; } config . pages = pages ; }
Create and init all necessary page component instances
@returns {void}
@private
Create and init all necessary page component instances