src/extensions/default/InlineTimingFunctionEditor/TimingFunctionUtils.js
function showHideHint(hint, show, documentCode, editorCode) {
        if (!hint || !hint.elem) {
            return;
        }

        if (show) {
            hint.shown = true;
            hint.animationInProgress = false;
            hint.elem.removeClass("fadeout");
            hint.elem.html(StringUtils.format(Strings.INLINE_TIMING_EDITOR_INVALID, documentCode, editorCode));
            hint.elem.css("display", "block");
        } else if (hint.shown) {
            hint.animationInProgress = true;
            AnimationUtils.animateUsingClass(hint.elem[0], "fadeout", 750)
                .done(function () {
                    if (hint.animationInProgress) { // do this only if the animation was not cancelled
                        hint.elem.hide();
                    }
                    hint.shown = false;
                    hint.animationInProgress = false;
                });
        } else {
            hint.elem.hide();
        }
    }
function showHideHint(hint, show, documentCode, editorCode) {
        if (!hint || !hint.elem) {
            return;
        }

        if (show) {
            hint.shown = true;
            hint.animationInProgress = false;
            hint.elem.removeClass("fadeout");
            hint.elem.html(StringUtils.format(Strings.INLINE_TIMING_EDITOR_INVALID, documentCode, editorCode));
            hint.elem.css("display", "block");
        } else if (hint.shown) {
            hint.animationInProgress = true;
            AnimationUtils.animateUsingClass(hint.elem[0], "fadeout", 750)
                .done(function () {
                    if (hint.animationInProgress) { // do this only if the animation was not cancelled
                        hint.elem.hide();
                    }
                    hint.shown = false;
                    hint.animationInProgress = false;
                });
        } else {
            hint.elem.hide();
        }
    }
function showHideHint ( hint , show , documentCode , editorCode ) { if ( ! hint || ! hint . elem ) { return ; } if ( show ) { hint . shown = true ; hint . animationInProgress = false ; hint . elem . removeClass ( "fadeout" ) ; hint . elem . html ( StringUtils . format ( Strings . INLINE_TIMING_EDITOR_INVALID , documentCode , editorCode ) ) ; hint . elem . css ( "display" , "block" ) ; } else if ( hint . shown ) { hint . animationInProgress = true ; AnimationUtils . animateUsingClass ( hint . elem [ 0 ] , "fadeout" , 750 ) . done ( function ( ) { if ( hint . animationInProgress ) { // do this only if the animation was not cancelled hint . elem . hide ( ) ; } hint . shown = false ; hint . animationInProgress = false ; } ) ; } else { hint . elem . hide ( ) ; } }
Show, hide or update the hint text

@param {object} hint Editor.hint object of the current InlineTimingFunctionEditor
@param {boolean} show Whether the hint should be shown or hidden
@param {string=} documentCode The invalid code from the document (can be omitted when hiding)
@param {string=} editorCode The valid code that is shown in the Inline Editor (can be omitted when hiding)
Show hide or update the hint text