assets/js/lib/modalbox.js
function(config, data) {
    var isNewInstance = !context;
    context = context || this;
    context.data = data ? data : initialBlocksData;    

    if (!isNewInstance) {
        context.render();
        return context;
    }

    var modulesOptions = context.options.modulesOptions;
    modulesOptions.modalBox = $.extend(true, {
        "classes": {
            "box": [context.options.mainClass, context.options.colMain, "source_modal_box"].join(' '),
            "title": "source_modal_title",
            "body": "source_modal_body",
            "close": "source_modal_close"
        },
        "labels": {
            "close": "Close extended search results"
        },
        "appendTo": ".source_main"
    }, modulesOptions.modalBox,  config);

    context.init();
}
function(config, data) {
    var isNewInstance = !context;
    context = context || this;
    context.data = data ? data : initialBlocksData;    

    if (!isNewInstance) {
        context.render();
        return context;
    }

    var modulesOptions = context.options.modulesOptions;
    modulesOptions.modalBox = $.extend(true, {
        "classes": {
            "box": [context.options.mainClass, context.options.colMain, "source_modal_box"].join(' '),
            "title": "source_modal_title",
            "body": "source_modal_body",
            "close": "source_modal_close"
        },
        "labels": {
            "close": "Close extended search results"
        },
        "appendTo": ".source_main"
    }, modulesOptions.modalBox,  config);

    context.init();
}
function ( config , data ) { var isNewInstance = ! context ; context = context || this ; context . data = data ? data : initialBlocksData ; if ( ! isNewInstance ) { context . render ( ) ; return context ; } var modulesOptions = context . options . modulesOptions ; modulesOptions . modalBox = $ . extend ( true , { "classes" : { "box" : [ context . options . mainClass , context . options . colMain , "source_modal_box" ] . join ( ' ' ) , "title" : "source_modal_title" , "body" : "source_modal_body" , "close" : "source_modal_close" } , "labels" : { "close" : "Close extended search results" } , "appendTo" : ".source_main" } , modulesOptions . modalBox , config ) ; context . init ( ) ; }
instance of box
instance of box