mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user