box/viewer.js — pull request #86 by lakenen (2014-07-02 20:14:57+00:00)
Title: Fix errors caused by destroying a viewer while pages are loading

Some errors were being thrown when promises were resolved after destroying a viewer (while pages were still loading). This fixes that issue.