src/LiveDevelopment/LiveDevelopment.js
function init(theConfig) {
        exports.config = theConfig;

        Inspector.on("error", _onError);
        Inspector.Inspector.on("detached", _onDetached);

        // Only listen for styleSheetAdded
        // We may get interim added/removed events when pushing incremental updates
        CSSAgent.on("styleSheetAdded.livedev", _styleSheetAdded);

        MainViewManager
            .on("currentFileChange", _onFileChanged);
        DocumentManager
            .on("documentSaved", _onDocumentSaved)
            .on("dirtyFlagChange", _onDirtyFlagChange);
        ProjectManager
            .on("beforeProjectClose beforeAppClose", close);

        // Initialize exports.status
        _setStatus(STATUS_INACTIVE);
    }
function init(theConfig) {
        exports.config = theConfig;

        Inspector.on("error", _onError);
        Inspector.Inspector.on("detached", _onDetached);

        // Only listen for styleSheetAdded
        // We may get interim added/removed events when pushing incremental updates
        CSSAgent.on("styleSheetAdded.livedev", _styleSheetAdded);

        MainViewManager
            .on("currentFileChange", _onFileChanged);
        DocumentManager
            .on("documentSaved", _onDocumentSaved)
            .on("dirtyFlagChange", _onDirtyFlagChange);
        ProjectManager
            .on("beforeProjectClose beforeAppClose", close);

        // Initialize exports.status
        _setStatus(STATUS_INACTIVE);
    }
function init ( theConfig ) { exports . config = theConfig ; Inspector . on ( "error" , _onError ) ; Inspector . Inspector . on ( "detached" , _onDetached ) ; // Only listen for styleSheetAdded // We may get interim added/removed events when pushing incremental updates CSSAgent . on ( "styleSheetAdded.livedev" , _styleSheetAdded ) ; MainViewManager . on ( "currentFileChange" , _onFileChanged ) ; DocumentManager . on ( "documentSaved" , _onDocumentSaved ) . on ( "dirtyFlagChange" , _onDirtyFlagChange ) ; ProjectManager . on ( "beforeProjectClose beforeAppClose" , close ) ; // Initialize exports.status _setStatus ( STATUS_INACTIVE ) ; }
Initialize the LiveDevelopment Session
Initialize the LiveDevelopment Session