Module Namespace

Index

Functions

Functions

define(name?: string, members?: any): any

Defines a new namespace with the specified name. For more information, see Organizing your code with WinJS.Namespace.

Parameters

  • name?: string optional

    The name of the namespace. This could be a dot-separated name for nested namespaces.

  • members?: any optional

    The members of the new namespace.

Returns

any

The newly-defined namespace.

defineWithParent(parentNamespace?: any, name?: string, members?: any): any

Defines a new namespace with the specified name under the specified parent namespace. For more information, see Organizing your code with WinJS.Namespace.

Parameters

  • parentNamespace?: any optional

    The parent namespace.

  • name?: string optional

    The name of the new namespace.

  • members?: any optional

    The members of the new namespace.

Returns

any

The newly-defined namespace.