add

public function add(l:Object):Object
Adds a new undo level/snapshot to the undo list.

Params

Name Type Description
l Object Optional undo level object to add.

Returns

Object Undo level that got added or null it a level wasn't needed.