From 38eea242265126ce48090dd2bef3777def3696f5 Mon Sep 17 00:00:00 2001 From: patst Date: Tue, 27 Apr 2021 09:52:06 +0200 Subject: [PATCH] use update instead of init in markdown bindingHandler --- src/bindingHandlers/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindingHandlers/markdown.ts b/src/bindingHandlers/markdown.ts index 2bb3a58ef..c13f1fc8c 100644 --- a/src/bindingHandlers/markdown.ts +++ b/src/bindingHandlers/markdown.ts @@ -17,7 +17,7 @@ interface MarkdownConfig { ko.bindingHandlers["markdown"] = { - init: (element: HTMLElement, valueAccessor: () => string | MarkdownConfig): void => { + update: (element: HTMLElement, valueAccessor: () => string | MarkdownConfig): void => { const config = ko.unwrap(valueAccessor()); const htmlObservable = ko.observable();