aboutsummaryrefslogtreecommitdiff
path: root/js/document/models
diff options
context:
space:
mode:
Diffstat (limited to 'js/document/models')
-rwxr-xr-xjs/document/models/base.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/document/models/base.js b/js/document/models/base.js
index 5f2a5893..d34fb2dd 100755
--- a/js/document/models/base.js
+++ b/js/document/models/base.js
@@ -206,10 +206,11 @@ exports.BaseDocumentModel = Montage.create(Component, {
206 if (this.views.design && (!view || view === 'design')) { 206 if (this.views.design && (!view || view === 'design')) {
207 // 207 //
208 this.parentContainer.removeChild(this.views.design.iframe); 208 this.parentContainer.removeChild(this.views.design.iframe);
209 this.views.design.pauseAndStopVideos();
209 this.views.design = null; 210 this.views.design = null;
210 } 211 }
211 // 212 //
212 if (callback) callback(success); 213 return success;
213 } 214 }
214 } 215 }
215 //////////////////////////////////////////////////////////////////// 216 ////////////////////////////////////////////////////////////////////