Expand Minimize

WinJS.UI.eventHandler function

Applies to Windows and Windows Phone

Marks a event handler function as being compatible with declarative processing.

Syntax


var object = WinJS.UI.eventHandler(handler);

Parameters

handler

Type: Object

The handler to be marked as compatible with declarative processing.

Return value

Type: Object

The handler, marked as compatible with declarative processing.

Remarks

Caution  A function that is marked as supported for declarative processing can be called from static HTML, potentially allowing an attacker to perform privileged actions. For this reason, only mark a function as supported for declarative processing if you are completely confident that it is secure from the injection of third-party content.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Base.js

 

 

Show:
© 2014 Microsoft