diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 660abd15e..a05949544 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -184,6 +184,7 @@ Rastislav Kish Expertium Christian Donat Asuka Minato +Dillon Baldwin ******************** The text of the 3 clause BSD license follows: diff --git a/ts/lib/tslib/dom.ts b/ts/lib/tslib/dom.ts index c3925ef8c..f0ea6855c 100644 --- a/ts/lib/tslib/dom.ts +++ b/ts/lib/tslib/dom.ts @@ -142,11 +142,5 @@ const getAnchorParent = const isListItem = (element: Element): element is HTMLLIElement => window.getComputedStyle(element).display === "list-item"; -const isParagraph = (element: Element): element is HTMLParamElement => element.tagName === "P"; -const isBlockElement = ( - element: Element, -): element is HTMLLIElement & HTMLParamElement => isListItem(element) || isParagraph(element); export const getListItem = getAnchorParent(isListItem); -export const getParagraph = getAnchorParent(isParagraph); -export const getBlockElement = getAnchorParent(isBlockElement);