Preserve passed-in dialog.dialogClass classes.
Merge pull request #2 from Laudanum/preserve-dialogclass-classes

Preserve passed-in dialog.dialogClass classes.