removed lodash

This commit is contained in:
Sergio Mendonça
2018-09-20 07:09:17 -03:00
parent 7cd8864fb9
commit 0684738ec2
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,3 @@
import { cloneDeep } from "lodash";
import { AppProperties } from "./app-properties/app-properties";
import { ContentTypes } from "./content-types/content-types";
import { CoreProperties, IPropertiesOptions } from "./core-properties";
@ -328,7 +327,9 @@ export class File {
const bookmarkId = `_TOC_${this.currentTocBookmarkId}`;
// console.log("Generating content for paragraph: ", bookmarkId);
const generatedParagraph = cloneDeep(paragraph);
// deep clone the original paragraph
const generatedParagraph = Object.assign(Object.create(Object.getPrototypeOf(paragraph)), paragraph);
generatedParagraph.clearPageBreaks().rightTabStop(9016, "dot");
const tabRun = new Run();