The setDirty method of the Story class sets the dirty flag of a single tiddler, which indicates whether it contains unsaved changes. It takes two parameters:

  • the title of the tiddler
  • the boolean value to set the dirty flag to

This method does not return any value.

For example to set this tiddler to dirty you would do the following:
story.setDirty('Story.setDirty', true);
bag
tiddlywikidev_public
created
Tue, 30 Nov 2010 11:19:07 GMT
creator
colmbritton
modified
Wed, 09 Mar 2011 12:28:00 GMT
modifier
jon
tags
method
story
theme
TWDocTheme