From 919a0d0ed35c24b1047281723ddde2ac98fc9a3e Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 15 May 2012 22:36:44 -0700 Subject: document close handler. initial working draft Signed-off-by: Valerio Virgillito --- js/document/models/base.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/document/models') 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, { if (this.views.design && (!view || view === 'design')) { // this.parentContainer.removeChild(this.views.design.iframe); + this.views.design.pauseAndStopVideos(); this.views.design = null; } // - if (callback) callback(success); + return success; } } //////////////////////////////////////////////////////////////////// -- cgit v1.2.3