From 40c621ae5cade35aa1e19a688df3766d00933da8 Mon Sep 17 00:00:00 2001 From: jseanxu Date: Wed, 9 Apr 2014 15:19:51 -0700 Subject: [PATCH] As the docs indicate, the 2nd parameter is optional. --- winjs/winjs.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winjs/winjs.d.ts b/winjs/winjs.d.ts index 7ce907b2f..5ff8da71d 100644 --- a/winjs/winjs.d.ts +++ b/winjs/winjs.d.ts @@ -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; + function render(href: string, element?: HTMLElement): Promise; /** * 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; + function renderCopy(href: string, target?: HTMLElement): Promise; //#endregion Functions