aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-30 23:02:46 -0700
committerValerio Virgillito2012-05-30 23:02:46 -0700
commit66632a6e0de0998ff6d36abdaa8c3a546eada0f5 (patch)
tree1f53b248cbc81cb7e7a84dd009975ecb379f741e /js/document
parent0a769756547acb93346d8e1b4126931a78845255 (diff)
downloadninja-66632a6e0de0998ff6d36abdaa8c3a546eada0f5.tar.gz
fixing the closing of documents
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/document-html.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/document/document-html.js b/js/document/document-html.js
index c60a12a2..377c305a 100755
--- a/js/document/document-html.js
+++ b/js/document/document-html.js
@@ -99,6 +99,8 @@ exports.HtmlDocument = Montage.create(Component, {
99 //Removing observer, only needed on initial load 99 //Removing observer, only needed on initial load
100 this._observer.disconnect(); 100 this._observer.disconnect();
101 this._observer = null; 101 this._observer = null;
102 //Show the view
103 this.model.currentView.show();
102 //Making callback after view is loaded 104 //Making callback after view is loaded
103 this.loaded.callback.call(this.loaded.context, this); 105 this.loaded.callback.call(this.loaded.context, this);
104 } 106 }