/* This is javascript that is required by published pages in order for module classes to work correctly.
   It is designed to be a lightweight javascript base that the published pages can use without having to include
   the entirety of the javascript the editor needs to function. */

$(document).ready(function() {

    // Really useful function for rescoping "this"
    var createRef = function(obj, method) {
        return function() {
            method.apply(obj, arguments);
        }
    }

    // Instantiate every module on the page
    ModuleLoader.instantiateModules();
});

