src/widgets/StatusBar.js
function updateIndicator(id, visible, style, tooltip) {
        if (!_init && !!brackets.test) {
            console.error("StatusBar API invoked before status bar created");
            return;
        }

        var $indicator = $("#" + id.replace(_indicatorIDRegexp, "-"));

        if ($indicator) {

            if (visible) {
                $indicator.show();
            } else {
                $indicator.hide();
            }

            if (style) {
                $indicator.removeClass();
                $indicator.addClass(style);
            } else {
                $indicator.removeClass();
                $indicator.addClass("indicator");
            }

            if (tooltip) {
                $indicator.attr("title", tooltip);
            }
        }
    }
function updateIndicator(id, visible, style, tooltip) {
        if (!_init && !!brackets.test) {
            console.error("StatusBar API invoked before status bar created");
            return;
        }

        var $indicator = $("#" + id.replace(_indicatorIDRegexp, "-"));

        if ($indicator) {

            if (visible) {
                $indicator.show();
            } else {
                $indicator.hide();
            }

            if (style) {
                $indicator.removeClass();
                $indicator.addClass(style);
            } else {
                $indicator.removeClass();
                $indicator.addClass("indicator");
            }

            if (tooltip) {
                $indicator.attr("title", tooltip);
            }
        }
    }
function updateIndicator ( id , visible , style , tooltip ) { if ( ! _init && ! ! brackets . test ) { console . error ( "StatusBar API invoked before status bar created" ) ; return ; } var $indicator = $ ( "#" + id . replace ( _indicatorIDRegexp , "-" ) ) ; if ( $indicator ) { if ( visible ) { $indicator . show ( ) ; } else { $indicator . hide ( ) ; } if ( style ) { $indicator . removeClass ( ) ; $indicator . addClass ( style ) ; } else { $indicator . removeClass ( ) ; $indicator . addClass ( "indicator" ) ; } if ( tooltip ) { $indicator . attr ( "title" , tooltip ) ; } } }
Updates a status indicator
@param {string} id Registration id of the indicator to be updated.
@param {boolean} visible Shows or hides the indicator over the statusbar.
@param {string=} style Sets the attribute "class" of the indicator.
@param {string=} tooltip Sets the attribute "title" of the indicator.
Updates a status indicator