mobify/mobifyjs — pull request #265 by MikeKlemarewski (2014-04-11 19:05:24+00:00)
Title: Restore capturedDoc

Update the restore function to render the capturedDoc

**Status**: *Ready to Merge*

**Reviewers**: @jansepar

## Changes
- Removes doc.write in favour of render
- Uses our waitForReady method instead of domIsReady

## How to test-drive this PR
- Check out a project and point the version of mobifyjs to this commit (easily done with the adaptivejs generator)
- make the project throw an error that results in a capture.restore() call
- make sure the original document is rendered