Class: UWA.Class.Options

UWA/Class/Options. UWA.Class.Options

new UWA.Class.Options()

Add methods to set and get instance options.

Index

Methods

setOptions(options) → {this}

Set options of this instance.

Passing an 'events' field will automatically add those events.

Parameters
Name Type Description
options Object

Options hash

Returns
Type
this

setOption(name, value) → {this}

Set a single option value.

Parameters
Name Type Description
name String

The option name

value *

The option value.

Returns
Type
this

getOption(name, defaultValue) → {this}

Get a single option value.

Parameters
Name Type Description
name String

the option name

defaultValue *

The default option value.

Returns
Type
this