Fix crash when closing the viewer when no overlay has been added.

This commit is contained in:
Antoine Vandecreme 2014-01-31 11:49:44 -05:00
parent 365dad9317
commit c4428db8a5

View File

@ -127,7 +127,10 @@ $.Viewer = function( options ) {
canvas: null,
// Overlays list. An overlay allows to add html on top of the viewer.
// Configured overlays via viewer's options
overlays: [],
// Currently opened overlays
currentOverlays: [],
//private state properties
previousBody: [],