﻿
/*
**************
* IMPORTANT :: All runtime instance declarations MUST be bound to document 'js-class-setup' event
**************
*/

$(document).bind("MRM-JAVASCRIPT-CLASS-SETUP", function() {
    // Setup runtime namespace if doesn't exist
    if (!mrm.global.isNamespaceDefined("mrm.runtime.display.controls")) mrm.global.createNamespace("mrm.runtime.display.controls", "1.0");

    // Create instance
    // use window. to check the variable otherwsise the JS will error when it is undefined
    if ($('.lightbox-extender').length > 0) {
        mrm.lexus.display.controls.lightboxExtender = new mrm.lexus.display.controls.LightboxExtender();
    }
});
