outline.js 512 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
define([
    'js/views/pages/course_outline', 'js/models/xblock_outline_info'
], function(CourseOutlinePage, XBlockOutlineInfo) {
    'use strict';
    return function (XBlockOutlineInfoJson, initialStateJson) {
        var courseXBlock = new XBlockOutlineInfo(XBlockOutlineInfoJson, {parse: true}),
            view = new CourseOutlinePage({
                el: $('#content'),
                model: courseXBlock,
                initialState: initialStateJson
            });
        view.render();
    };
});