all files / document-editor/implementation/list/ level-override.js

86.96% Statements 20/23
50% Branches 3/6
83.33% Functions 5/6
86.96% Lines 20/23
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34               37×   37× 37× 37×            
define(["require", "exports", "@syncfusion/ej2-base"], function (require, exports, ej2_base_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var WLevelOverride = (function () {
        function WLevelOverride() {
        }
        WLevelOverride.prototype.clear = function () {
            if (!ej2_base_1.isNullOrUndefined(this.overrideListLevel)) {
                this.overrideListLevel.clearFormat();
            }
            this.overrideListLevel = undefined;
        };
        WLevelOverride.prototype.destroy = function () {
            if (!ej2_base_1.isNullOrUndefined(this.overrideListLevel)) {
                this.overrideListLevel.destroy();
            }
            this.levelNumber = undefined;
            this.startAt = undefined;
            this.overrideListLevel = undefined;
        };
        WLevelOverride.prototype.clone = function () {
            var levelOverride = new WLevelOverride();
            levelOverride.startAt = this.startAt;
            levelOverride.levelNumber = this.levelNumber;
            Eif (!ej2_base_1.isNullOrUndefined(this.overrideListLevel)) {
                levelOverride.overrideListLevel = this.overrideListLevel.clone(levelOverride);
            }
            return levelOverride;
        };
        return WLevelOverride;
    }());
    exports.WLevelOverride = WLevelOverride;
});