hwhw/kindlepdfviewer — pull request #434 by tigran123 (2012-10-13 09:45:40+00:00)
Title: Provide :setDefaults() for overriding defaults

Because we re-use the same instance of UniReader object (i.e. PDFReader, DJVUReader, CREReader and PICViewer) we have to re-initialize the defaults on closing the document. The clean way to do this which allows to keep the default values in a single place is in a :setDefaults() method which this commit provides, together with the example of usage in DJVUReader and PICViewer.