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
This commit is contained in:
Dan Ludwig
2013-02-25 15:15:13 -05:00
parent c78e240d0c
commit d53bedb39c
+1 -1
View File
@@ -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;