WinJS.Utilities.markDisposable function

Applies to Windows and Windows Phone

Attaches the default dispose API wrapping the dispose implementation to the specified element.

Syntax


WinJS.Utilities.markDisposable(element, disposeImpl);

Parameters

element

Type: HTMLElement

The element to mark as disposable.

disposeImpl

Type: Function

The function containing the element-specific dispose logic, called by the dispose function that markDisposable attaches.

Return value

This function does not return a value.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Utilities

Library

Ui.js

 

 

Show:
© 2014 Microsoft