diff options
author | Valerio Virgillito | 2012-05-15 22:36:44 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-15 22:36:44 -0700 |
commit | 919a0d0ed35c24b1047281723ddde2ac98fc9a3e (patch) | |
tree | a35ef0d07bf16a461543f4481a04f005ceacc160 /js/document/models | |
parent | 94855a2c1074f67f158b94ca0d61c51ee46c51b5 (diff) | |
download | ninja-919a0d0ed35c24b1047281723ddde2ac98fc9a3e.tar.gz |
document close handler. initial working draft
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/document/models')
-rwxr-xr-x | js/document/models/base.js | 3 |
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 | //////////////////////////////////////////////////////////////////// |