Caplin Trader 5.1.0

Class: module:br-presenter/property/Snapshot

module:br-presenter/property/Snapshot(pProperties)

The snapshot class allows the state of a collection of properties to be preserved, so that it becomes possible to roll the properties back to a known state at a future point in time. The module:br-presenter/property/Properties class may be helpful in composing the list of properties to be snapshot, when those properties are distributed throughout the presentation model.

Constructor

new module:br-presenter/property/Snapshot(pProperties)

Create a new Snapshot instance containing the current state of the given properties.

Parameters:
Name Type Description
pProperties Array

The list of properties to be snapshot.

Methods

apply()

Revert the properties within the snapshot back to their state when the snapshot was originally taken.