aboutsummaryrefslogtreecommitdiff
path: root/js/components
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-15 22:36:44 -0700
committerValerio Virgillito2012-05-15 22:36:44 -0700
commit919a0d0ed35c24b1047281723ddde2ac98fc9a3e (patch)
treea35ef0d07bf16a461543f4481a04f005ceacc160 /js/components
parent94855a2c1074f67f158b94ca0d61c51ee46c51b5 (diff)
downloadninja-919a0d0ed35c24b1047281723ddde2ac98fc9a3e.tar.gz
document close handler. initial working draft
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/components')
-rwxr-xr-xjs/components/layout/document-entry.reel/document-entry.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/components/layout/document-entry.reel/document-entry.js b/js/components/layout/document-entry.reel/document-entry.js
index 81a63c90..4d09a362 100755
--- a/js/components/layout/document-entry.reel/document-entry.js
+++ b/js/components/layout/document-entry.reel/document-entry.js
@@ -117,7 +117,7 @@ exports.DocumentEntry = Montage.create(Component, {
117 handleClick: { 117 handleClick: {
118 value: function(event) { 118 value: function(event) {
119 if(event._event.target.nodeName === "IMG") { 119 if(event._event.target.nodeName === "IMG") {
120 this.application.ninja.documentController.closeDocument(this._uuid); 120 this.application.ninja.documentController.closeFile(this.application.ninja.documentController._findDocumentByUUID(this._uuid));
121 } else { 121 } else {
122 if(!this._document.isActive) { 122 if(!this._document.isActive) {
123 this.application.ninja.stage.stageView.switchDocument(this.application.ninja.documentController._findDocumentByUUID(this._uuid)); 123 this.application.ninja.stage.stageView.switchDocument(this.application.ninja.documentController._findDocumentByUUID(this._uuid));