File manipulation functions
317
Documents that are referenced by the
dreamweaver.getObjectTags()
,
dreamweaver.getObjectRefs()
,
dreamweaver.getDocumentPath()
, or
dreamweaver.getDocumentDOM()
functions are automatically released when the script that
contains the call finishes executing. If the script opens many documents, you must use this
function to explicitly release documents before finishing the script to avoid running out of
memory.
Arguments
documentObject
■
The
documentObject
argument is the object at the root of a document’s DOM tree,
which is the value that the
dreamweaver.getDocumentDOM()
function returns.
Returns
Nothing.
dreamweaver.revertDocument()
Availability
Dreamweaver 3.
Description
Reverts the specified document to the previously saved version.
Arguments
documentObject
■
The
documentObject
argument is the object at the root of a document’s DOM tree,
which is the value that the
dreamweaver.getDocumentDOM()
function returns.
Returns
Nothing.
Enabler
See
“dreamweaver.canRevertDocument()” on page 570
.
NO
TE
This function is relevant only for documents that were referenced by a URL, are not
currently open in a frame or document window, and are not extension files. Extension
files are loaded into memory at startup and are not released until you quit Dreamweaver.
000_DW_API_Print.book Page 317 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...