From bfe38c6de7878946433025a4b69e34f53dc6ffab Mon Sep 17 00:00:00 2001 From: Anand Prakash Date: Sun, 27 Apr 2014 17:35:19 -0700 Subject: [PATCH] Made element parameter optional in WinJS.Utilities.query as it is optional in WinJS implementation. See http://msdn.microsoft.com/en-us/library/windows/apps/br229847.aspx. --- winjs/winjs.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winjs/winjs.d.ts b/winjs/winjs.d.ts index f58c11d12..a2e95e557 100644 --- a/winjs/winjs.d.ts +++ b/winjs/winjs.d.ts @@ -8243,7 +8243,7 @@ declare module WinJS.Utilities { * @param element Optional. The root element at which to start the query. If this parameter is omitted, the scope of the query is the entire document. * @returns A QueryCollection with zero or one elements matching the specified selector query. **/ - function query(query: any, element: HTMLElement): QueryCollection; + function query(query: any, element?: HTMLElement): QueryCollection; /** * Ensures that the specified function executes only after the DOMContentLoaded event has fired for the current page. The DOMContentLoaded event occurs after the page has been parsed but before all the resources are loaded.