Aplicativos do Windows
Recolher sumário
Expandir sumário
EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

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

WinJS 3.0

Namespace

WinJS.UI

 

 

Mostrar:
© 2017 Microsoft