From d53bedb39c6c44f6985e4ab717a124f2c2a79ba5 Mon Sep 17 00:00:00 2001 From: Dan Ludwig Date: Mon, 25 Feb 2013 15:15:13 -0500 Subject: [PATCH] Remove ko.utils.setTextContent from public knockout utils API surface. Although this function is available via knockout-{version}.debug.js, it is not part of the minified knockout-{version}.js file. Invoking this function will cause a runtime javascript error when invoked against the minified js. See this for more info: https://github.com/SteveSanderson/knockout/issues/670 --- knockout/knockout.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index aefcc797a..c13856198 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -337,7 +337,7 @@ interface KnockoutUtils { toggleDomNodeCssClass(node: any, className: string, shouldHaveClass: bool): void; - setTextContent(element: any, textContent: string): void; + //setTextContent(element: any, textContent: string): void; // NOT PART OF THE MINIFIED API SURFACE (ONLY IN knockout-{version}.debug.js) https://github.com/SteveSanderson/knockout/issues/670 setElementName(element: any, name: string): void;