As the docs indicate, the 2nd parameter is optional.

This commit is contained in:
jseanxu
2014-04-09 15:19:51 -07:00
parent 722788bcc7
commit 40c621ae5c
+2 -2
View File
@@ -7371,7 +7371,7 @@ declare module WinJS.UI.Fragments {
* @param element Optional. The element to which the fragment is appended.
* @returns A promise that is fulfilled when the fragment has been loaded. If a target element is not specified, the copied fragment is the completed value. The element is not added to the cache. See also rendercopy, where the element is added to the cache.
**/
function render(href: string, element: HTMLElement): Promise<HTMLElement>;
function render(href: string, element?: HTMLElement): Promise<HTMLElement>;
/**
* Loads and copies the contents of the specified URI into the specified element.
@@ -7379,7 +7379,7 @@ declare module WinJS.UI.Fragments {
* @param target The element to which the fragment is appended.
* @returns A promise that is fulfilled when the fragment has been loaded. If a target element is not specified, the copied fragment is the completed value. The fragment is added to the cache. See also render, where the element is not added to the cache.
**/
function renderCopy(href: string, target: HTMLElement): Promise<HTMLElement>;
function renderCopy(href: string, target?: HTMLElement): Promise<HTMLElement>;
//#endregion Functions