Share via


WinJS.UI.eventHandler function

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 WinJS version

WinJS 3.0

Namespace

WinJS.UI