Home Reference Source
public class | source

Memory

Example:

// memory = new Memory();

Constructor Summary

Public Constructor
public

constructor(pid: *, mode: *, origin: *, value: *)

Add new memory element

Member Summary

Public Members
public

mode: *

public

origin: *

public

pid: *

public

value: *

Method Summary

Public Methods
public

get(): *

Get the current value of the memory item (same as memory.name.value)

public

toggle(values: array): *

Toggle the value based on an array list of values

Private Methods
private

Return an encoded version of the memory for storage in a coookie

Public Constructors

public constructor(pid: *, mode: *, origin: *, value: *) source

Add new memory element

Params:

NameTypeAttributeDescription
pid *
mode *
origin *
value *

Public Members

public mode: * source

public origin: * source

public pid: * source

public value: * source

Public Methods

public get(): * source

Get the current value of the memory item (same as memory.name.value)

Return:

*

public toggle(values: array): * source

Toggle the value based on an array list of values

Params:

NameTypeAttributeDescription
values array

Return:

*

Private Methods

private _store(): string source

Return an encoded version of the memory for storage in a coookie

Return:

string