function fail(errorText) {
            var offset = this.$canvas.position();

            this.$container
                .append($('<div>')
                    .css({
                        position: 'absolute',
                        top: offset.top,
                        left: offset.left,
                        backgroundColor: 'rgba(0, 0, 0, 0.75)',
                        color: 'white',
                        fontSize: 40,
                        textAlign: 'center',
                        display: 'table',
                        width: '100%',
                        height: '100%',
                    })
                    .append($('<div>')
                        .css({
                            display: 'table-cell',
                            verticalAlign: 'middle',
                        })
                        .append($('<div>')
                            .css({
                                display: 'block',
                                margin: '0 auto',
                            })
                            .text(this.config.criticalErrorText)
                        )
                    )
                );

            throw new Malakh.Error(errorText);
        }
/**
         * Displays an error message on Malakh canvas and throws a new <code>Malakh.Error</code>.
         * @param {string} [errorText]
         */
Displays an error message on Malakh canvas and throws a new Malakh.Error.
@param {string} [errorText]
Displays an error message on Malakh canvas and throws a new Malakh . Error . @param { string } [ errorText ]
function fail(errorText) {
            var offset = this.$canvas.position();
            this.$container
                .append($('<div>')
                    .css({
                        position: 'absolute',
                        top: offset.top,
                        left: offset.left,
                        backgroundColor: 'rgba(0, 0, 0, 0.75)',
                        color: 'white',
                        fontSize: 40,
                        textAlign: 'center',
                        display: 'table',
                        width: '100%',
                        height: '100%',
                    })
                    .append($('<div>')
                        .css({
                            display: 'table-cell',
                            verticalAlign: 'middle',
                        })
                        .append($('<div>')
                            .css({
                                display: 'block',
                                margin: '0 auto',
                            })
                            .text(this.config.criticalErrorText)
                        )
                    )
                );
            throw new Malakh.Error(errorText);
        }
function fail ( errorText ) { var offset = this . $canvas . position ( ) ; this . $container . append ( $ ( '<div>' ) . css ( { position : 'absolute' , top : offset . top , left : offset . left , backgroundColor : 'rgba(0, 0, 0, 0.75)' , color : 'white' , fontSize : 40 , textAlign : 'center' , display : 'table' , width : '100%' , height : '100%' , } ) . append ( $ ( '<div>' ) . css ( { display : 'table-cell' , verticalAlign : 'middle' , } ) . append ( $ ( '<div>' ) . css ( { display : 'block' , margin : '0 auto' , } ) . text ( this . config . criticalErrorText ) ) ) ) ; throw new Malakh . Error ( errorText ) ; }
Displays an error message on Malakh canvas and throws a new <code>Malakh.Error</code>.
Displays an error message on Malakh canvas and throws a new <code > Malakh . Error< / code > .