Namespace: states

Drupal. states

The base States namespace.

Having the local states variable allows us to use the States namespace without having to always declare "Drupal.states".

Classes

Dependent
State
Trigger

Members

staticDrupal.states.postponed

An array of functions that should be postponed.

Methods

innercompare(a, b){bool}

Compares two values while ignoring undefined values.

Name Type Description
a *

Value a.

b *

Value b.

Returns:
Type Description
bool The comparison result.

innerinvert(a, invertState){bool}

Inverts a (if it's not undefined) when invertState is true.

Name Type Description
a *

The value to maybe invert.

invertState bool

Whether to invert state or not.

Returns:
Type Description
bool The result.

innerternary(a, b){bool}

Bitwise AND with a third undefined state.

Name Type Description
a *

Value a.

b *

Value b

Returns:
Type Description
bool The result.