src/LiveDevelopment/main.js
function _setImplementation(multibrowser) {
        if (multibrowser) {
            // set implemenation
            LiveDevImpl = MultiBrowserLiveDev;
            // update styles for UI status
            _status = [
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_NOT_CONNECTED, style: "warning" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_NOT_CONNECTED, style: "" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_PROGRESS1, style: "info" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_CONNECTED, style: "success" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_OUT_OF_SYNC, style: "out-of-sync" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_SYNC_ERROR, style: "sync-error" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_PROGRESS1, style: "info" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_PROGRESS1, style: "info" }
            ];
        } else {
            LiveDevImpl = LiveDevelopment;
            _status = [
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_NOT_CONNECTED, style: "warning" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_NOT_CONNECTED, style: "" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_PROGRESS1, style: "info" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_PROGRESS2, style: "info" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_CONNECTED, style: "success" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_OUT_OF_SYNC, style: "out-of-sync" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_SYNC_ERROR, style: "sync-error" }
            ];
        }
        // setup status changes listeners for new implementation
        _setupGoLiveButton();
        _setupGoLiveMenu();
        // toggle the menu
        _toggleLivePreviewMultiBrowser(multibrowser);
    }
function _setImplementation(multibrowser) {
        if (multibrowser) {
            // set implemenation
            LiveDevImpl = MultiBrowserLiveDev;
            // update styles for UI status
            _status = [
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_NOT_CONNECTED, style: "warning" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_NOT_CONNECTED, style: "" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_PROGRESS1, style: "info" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_CONNECTED, style: "success" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_OUT_OF_SYNC, style: "out-of-sync" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_SYNC_ERROR, style: "sync-error" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_PROGRESS1, style: "info" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_PROGRESS1, style: "info" }
            ];
        } else {
            LiveDevImpl = LiveDevelopment;
            _status = [
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_NOT_CONNECTED, style: "warning" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_NOT_CONNECTED, style: "" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_PROGRESS1, style: "info" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_PROGRESS2, style: "info" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_CONNECTED, style: "success" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_OUT_OF_SYNC, style: "out-of-sync" },
                { tooltip: Strings.LIVE_DEV_STATUS_TIP_SYNC_ERROR, style: "sync-error" }
            ];
        }
        // setup status changes listeners for new implementation
        _setupGoLiveButton();
        _setupGoLiveMenu();
        // toggle the menu
        _toggleLivePreviewMultiBrowser(multibrowser);
    }
function _setImplementation ( multibrowser ) { if ( multibrowser ) { // set implemenation LiveDevImpl = MultiBrowserLiveDev ; // update styles for UI status _status = [ { tooltip : Strings . LIVE_DEV_STATUS_TIP_NOT_CONNECTED , style : "warning" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_NOT_CONNECTED , style : "" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_PROGRESS1 , style : "info" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_CONNECTED , style : "success" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_OUT_OF_SYNC , style : "out-of-sync" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_SYNC_ERROR , style : "sync-error" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_PROGRESS1 , style : "info" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_PROGRESS1 , style : "info" } ] ; } else { LiveDevImpl = LiveDevelopment ; _status = [ { tooltip : Strings . LIVE_DEV_STATUS_TIP_NOT_CONNECTED , style : "warning" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_NOT_CONNECTED , style : "" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_PROGRESS1 , style : "info" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_PROGRESS2 , style : "info" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_CONNECTED , style : "success" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_OUT_OF_SYNC , style : "out-of-sync" } , { tooltip : Strings . LIVE_DEV_STATUS_TIP_SYNC_ERROR , style : "sync-error" } ] ; } // setup status changes listeners for new implementation _setupGoLiveButton ( ) ; _setupGoLiveMenu ( ) ; // toggle the menu _toggleLivePreviewMultiBrowser ( multibrowser ) ; }
Sets the MultiBrowserLiveDev implementation if multibrowser is truthy,
keeps default LiveDevelopment implementation based on CDT otherwise.
It also resets the listeners and UI elements.
Sets the MultiBrowserLiveDev implementation if multibrowser is truthy keeps default LiveDevelopment implementation based on CDT otherwise . It also resets the listeners and UI elements .