API Docs for: trial
Show:

nx.Object Class

Module: nx

The base of any Classes defined in nx framework.

Constructor

nx.Object

()

Methods

can

(
  • name
)
Boolean

Check whether current object has specified event.

Parameters:

Returns:

define

(
  • [type]
  • [parent]
  • [members]
)
Function

Define a class

Parameters:

Returns:

destroy

()

Destroy current object.

dispose

()

Dispose current object.

extendEvent

(
  • target
  • name
)
static

Define an event and attach to target.

Parameters:

extendMethod

(
  • target
  • name
  • method
)
static

Define a method and attach to target.

Parameters:

extendProperty

(
  • target
  • name
  • meta
)
static

Define a property and attach to target.

Parameters:

fire

(
  • name
  • [data]
)

Trigger an event.

Parameters:

get

(
  • name
)

Get specified property value.

Parameters:

Returns:

:

gets

() Object

Get all properties.

Returns:

has

(
  • name
)
Boolean

Check whether current object has specified property.

Parameters:

Returns:

inherited

()

Call overridden method from super class

is

(
  • type
)
Boolean

Check whether current object is specified type.

Parameters:

Returns:

off

(
  • name
  • [handler]
  • [context]
)

Remove an event handler.

Parameters:

on

(
  • name
  • handler
  • [context]
)

Add an event handler.

Parameters:

set

(
  • name
  • value
)

Set specified property value.

Parameters:

sets

(
  • dict
)

Set a bunch of properties.

Parameters:

upon

(
  • name
  • handler
  • [context]
)

Add a single event handler.

Parameters: