Clear Up
SharpKit Reference

Memento Class

This class manages a set of captured properties from an object. These captured properties can later be restored to an object.

Namespace: Ext.util

Base Types


Name Description
Memento(object, object) Creates a new memento and optionally captures properties from the target object.


Name Description
capture(object, object) Captures the specified properties from the target object in this memento.
remove(object) Removes the specified properties from this memento. These properties will not be restored later without re-capturing their values.
restore(object, bool, object) Restores the specified properties from this memento to the target object.
restoreAll(bool, object) Restores all captured properties in this memento to the target object.


Name Description
target The default target object for capture/restore (passed to the constructor). Defaults to: null
© Copyright 2005-2011 SharpKit. All rights reserved.