function _updateOverwriteLabel(event, editor, newstate, doNotAnimate) {
        if ($statusOverwrite.text() === (newstate ? Strings.STATUSBAR_OVERWRITE : Strings.STATUSBAR_INSERT)) {
            // label already up-to-date
            return;
        }

        $statusOverwrite.text(newstate ? Strings.STATUSBAR_OVERWRITE : Strings.STATUSBAR_INSERT);

        if (!doNotAnimate) {
            AnimationUtils.animateUsingClass($statusOverwrite[0], "flash", 1500);
        }
    }
function _updateOverwriteLabel(event, editor, newstate, doNotAnimate) {
        if ($statusOverwrite.text() === (newstate ? Strings.STATUSBAR_OVERWRITE : Strings.STATUSBAR_INSERT)) {
            // label already up-to-date
            return;
        }

        $statusOverwrite.text(newstate ? Strings.STATUSBAR_OVERWRITE : Strings.STATUSBAR_INSERT);

        if (!doNotAnimate) {
            AnimationUtils.animateUsingClass($statusOverwrite[0], "flash", 1500);
        }
    }
function _updateOverwriteLabel ( event , editor , newstate , doNotAnimate ) { if ( $statusOverwrite . text ( ) === ( newstate ? Strings . STATUSBAR_OVERWRITE : Strings . STATUSBAR_INSERT ) ) { // label already up-to-date return ; } $statusOverwrite . text ( newstate ? Strings . STATUSBAR_OVERWRITE : Strings . STATUSBAR_INSERT ) ; if ( ! doNotAnimate ) { AnimationUtils . animateUsingClass ( $statusOverwrite [ 0 ] , "flash" , 1500 ) ; } }
Update insert/overwrite label
@param {Event} event (unused)
@param {Editor} editor Current editor
@param {string} newstate New overwrite state
@param {boolean=} doNotAnimate True if state should not be animated
Update insert / overwrite label
update status bar label